changeset 15:b6e28cd1a610

Comment the sample file reader in read_revinfo.py with regard to multiple path items
author Franz Glasner <hg@dom66.de>
date Sun, 27 Sep 2015 14:18:06 +0200
parents 92774da07ebc
children e0f9f80704a1
files read_revinfo.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/read_revinfo.py	Sun Sep 27 13:52:09 2015 +0200
+++ b/read_revinfo.py	Sun Sep 27 14:18:06 2015 +0200
@@ -10,11 +10,13 @@
 __author__ = "Franz Glasner"
 
 
-def read_revinfo(filename):
+def read_revinfo_simple(filename):
     """Read file file `filename` and return it's contents as dict.
 
     If `filename` does not exist return `None`.
 
+    This is a simple-minded implementation: squashes many path items into
+    one (the last encountered).
     """
     try:
         f =  open(filename, "rt")
@@ -26,4 +28,4 @@
         return None
 
 import sys
-print read_revinfo(sys.argv[1])
+print read_revinfo_simple(sys.argv[1])