diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 +0000 |
commit | 584b0e0c3d27dc6b576366368bf7ca2f60e69e7c (patch) | |
tree | f2e33dbae88a59b367819920a5c4a2260f080788 /Lib/pkg_resources.py | |
parent | 17a35f906c29e71510d749283b381d95a5de0316 (diff) | |
download | cpython-git-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.gz |
Whilespace normalization (reindint.py).
Diffstat (limited to 'Lib/pkg_resources.py')
-rw-r--r-- | Lib/pkg_resources.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Lib/pkg_resources.py b/Lib/pkg_resources.py index 9db11d8445..db6cc90259 100644 --- a/Lib/pkg_resources.py +++ b/Lib/pkg_resources.py @@ -58,7 +58,7 @@ __all__ = [ # Exceptions 'ResolutionError','VersionConflict','DistributionNotFound','UnknownExtra', 'ExtractionError', - + # Parsing functions and string utilities 'parse_requirements', 'parse_version', 'safe_name', 'safe_version', 'get_platform', 'compatible_platforms', 'yield_lines', 'split_sections', @@ -823,7 +823,7 @@ class ResourceManager: old_exc = sys.exc_info()[1] cache_path = self.extraction_path or get_default_cache() - + err = ExtractionError("""Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg @@ -878,7 +878,7 @@ variable to point to an accessible directory. ensure_directory(target_path) except: self.extraction_error() - + self.cached_files[target_path] = 1 return target_path @@ -1264,11 +1264,11 @@ class ZipProvider(EggProvider): try: rename(tmpnam, real_path) - - except os.error: + + except os.error: if os.path.isfile(real_path): stat = os.stat(real_path) - + if stat.st_size==size and stat.st_mtime==timestamp: # size and stamp match, somebody did it just ahead of # us, so we're done @@ -2375,4 +2375,3 @@ run_main = run_script # backward compatibility # calling ``require()``) will get activated as well. add_activation_listener(lambda dist: dist.activate()) working_set.entries=[]; map(working_set.add_entry,sys.path) # match order - |