diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-11 10:59:30 +0100 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-11 10:59:30 +0100 |
commit | 065e8eb834d65b4e0572611c16f7f2950db4512b (patch) | |
tree | fbc1a3fe9123e5ce9e7fdd25af150e3b5777687c /pkg_resources.py | |
parent | a938092e7b189337cdd25c101c2e8fc984433eff (diff) | |
download | external_python_setuptools-065e8eb834d65b4e0572611c16f7f2950db4512b.tar.gz external_python_setuptools-065e8eb834d65b4e0572611c16f7f2950db4512b.tar.bz2 external_python_setuptools-065e8eb834d65b4e0572611c16f7f2950db4512b.zip |
Verified that not isinstance(IOError(), os.error), so there's no value in this statement being in the try block.
--HG--
branch : distribute
extra : rebase_source : 79dc86f2251503336feaa3d3f99c744d0ea45887
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 69601480..9d406e38 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1409,10 +1409,10 @@ class ZipProvider(EggProvider): ) 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) |