comparison piecrust/environment.py @ 158:1187739e5a19

Fix some indentation and line lengths.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 31 Dec 2014 16:56:55 -0800
parents 371a6c879ab9
children aa6b7ff6a193
comparison
equal deleted inserted replaced
157:55910ab4bfea 158:1187739e5a19
58 if (fs_key not in self._invalidated_fs_items and 58 if (fs_key not in self._invalidated_fs_items and
59 self.fs_cache.isValid(fs_key, fs_cache_time)): 59 self.fs_cache.isValid(fs_key, fs_cache_time)):
60 logger.debug("'%s' found in file-system cache." % 60 logger.debug("'%s' found in file-system cache." %
61 key) 61 key)
62 item_raw = self.fs_cache.read(fs_key) 62 item_raw = self.fs_cache.read(fs_key)
63 item = json.loads(item_raw, 63 item = json.loads(
64 item_raw,
64 object_pairs_hook=collections.OrderedDict) 65 object_pairs_hook=collections.OrderedDict)
65 self.cache.put(key, item) 66 self.cache.put(key, item)
66 return item 67 return item
67 68
68 # Look into the mem-cache. 69 # Look into the mem-cache.