"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "versions/caches.py" between
versions-1.5.4.tar.gz and versions-1.5.5.tar.gz

About: versions checks releases and versions of your favorite programs (on the main repositories) through RSS or Atom feeds.

caches.py  (versions-1.5.4):caches.py  (versions-1.5.5)
skipping to change at line 101 skipping to change at line 101
for line in cache_file: for line in cache_file:
(project, version) = self._return_project_and_version_from_line( line) (project, version) = self._return_project_and_version_from_line( line)
self.cache_dict[project] = version self.cache_dict[project] = version
cache_file.close() cache_file.close()
# End of _read_cache_file() function # End of _read_cache_file() function
def write_cache_file(self): def write_cache_file(self):
""" """
Owerwrites dictionary cache to the cache file Overwrites dictionary cache to the cache file
""" """
cache_file = open_and_truncate_file(self.cache_filename) cache_file = open_and_truncate_file(self.cache_filename)
for (project, version) in self.cache_dict.items(): for (project, version) in self.cache_dict.items():
cache_file.write('%s %s\n' % (project, version)) cache_file.write('%s %s\n' % (project, version))
cache_file.close() cache_file.close()
# End of write_cache_file() function # End of write_cache_file() function
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)