Commits

Jason R. Coombs committed 79dc86f

Verified that not isinstance(IOError(), os.error), so there's no value in this statement being in the try block.

Comments (0)

Files changed (1)

         )
         timestamp = time.mktime(date_time)
 
+        if not WRITE_SUPPORT:
+            raise IOError('"os.rename" and "os.unlink" are not supported '
+                          'on this platform')
         try:
-            if not WRITE_SUPPORT:
-                raise IOError('"os.rename" and "os.unlink" are not supported '
-                              'on this platform')
 
             real_path = manager.get_cache_path(
                 self.egg_name, self._parts(zip_path)