File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2424 import cPickle as pickle
2525except ImportError :
2626 import pickle
27+
2728from . import declarations_cache
29+ from .. import utils
2830
2931
3032class index_entry_t (object ):
@@ -238,6 +240,10 @@ def _load(self):
238240 self .__index = {}
239241 self .__filename_rep = filename_repository_t (self .__sha1_sigs )
240242
243+ # Read the xml generator from the cache and set it
244+ with open (os .path .join (self .__dir , "gen.dat" ), "rb" ) as gen_file :
245+ utils .xml_generator = gen_file .read ()
246+
241247 self .__modified_flag = False
242248
243249 def _save (self ):
@@ -255,6 +261,11 @@ def _save(self):
255261 indexfilename ,
256262 (self .__index ,
257263 self .__filename_rep ))
264+
265+ # Read the xml generator from the cache and set it
266+ with open (os .path .join (self .__dir , "gen.dat" ), "wb" ) as gen_file :
267+ gen_file .write (utils .xml_generator )
268+
258269 self .__modified_flag = False
259270
260271 def _read_file (self , filename ):
You can’t perform that action at this time.
0 commit comments