Revision: 6872 Author: nicdumz Date: 2009-05-12 01:12:43 +0000 (Tue, 12 May 2009)
Log Message: ----------- try...except...finally removal (not working in Python 2.4)
Modified Paths: -------------- trunk/pywikipedia/diskcache.py
Modified: trunk/pywikipedia/diskcache.py =================================================================== --- trunk/pywikipedia/diskcache.py 2009-05-11 16:00:00 UTC (rev 6871) +++ trunk/pywikipedia/diskcache.py 2009-05-12 01:12:43 UTC (rev 6872) @@ -77,10 +77,11 @@ except IOError: pass try: - import os - os.unlink(self.cache_path) - except OSError: - pass + try: + import os + os.unlink(self.cache_path) + except OSError: + pass finally: os = None
pywikipedia-svn@lists.wikimedia.org