Changeset 124:7f0429989f5f for cachers/cached_url.py
- Timestamp:
- 06/19/07 17:24:02 (15 months ago)
- Files:
-
- 1 modified
-
cachers/cached_url.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cachers/cached_url.py
r123 r124 27 27 latest_infos = _get_metadata(url) 28 28 if latest_infos.values() == infos.values(): 29 return cached29 return infos, cached 30 30 else: 31 return cached31 return infos, cached 32 32 cached = _get_content(url) 33 33 infos = _get_metadata(url) 34 34 mc.set(url, (infos, cached)) 35 return cached 36 37 get_content('http://ec1.images-amazon.com/images/I/51N8DTWP7ZL._AA240_.jpg') 35 return infos, cached 38 36 39 37 38
