OSDN Git Service

idxfile.load_dat allways returns dictionary which keys are title, lineCount, lastModi...
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 16 Aug 2006 04:58:05 +0000 (13:58 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 16 Aug 2006 04:58:05 +0000 (13:58 +0900)
src/Hage1/idxfile.py

index 4033b94..31c1287 100644 (file)
@@ -31,11 +31,11 @@ def load_idx(bbs, board, thread):
     thread: thread id
 
     return dictionary which key is in metadata_namelist if idx file exist,
-    otherwise return None
+    otherwise return empty dic
     """
     idxfile_path = get_thread_idx_path(bbs, board, thread)
     if not os.path.exists(idxfile_path):
-        return None
+        return {"title":None,"lineCount":0,"lastModified":None,"etag":None}
 
     f = open(idxfile_path, "r")
     datadic = {}