diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 07:29:17 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 07:29:17 (GMT) |
commit | 54540ec917a47c39328e87b1f4ddf83adeca2f5c (patch) | |
tree | d4cef1dbff88af3933fd0cb4572d272e77a9b9e7 /Lib/site.py | |
parent | c53ae589548e37c4bd86f03294a27667978a51f8 (diff) | |
download | cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.zip cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.gz cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.bz2 |
Remove redundant imports.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py index 46fa53a..6ef1e0b 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -154,7 +154,7 @@ def addpackage(sitedir, name, known_paths): if not dircase in known_paths and os.path.exists(dir): sys.path.append(dir) known_paths.add(dircase) - except Exception as err: + except Exception: print("Error processing line {:d} of {}:\n".format(n+1, fullname), file=sys.stderr) for record in traceback.format_exception(*sys.exc_info()): @@ -241,7 +241,6 @@ def getusersitepackages(): return USER_SITE from sysconfig import get_path - import os if sys.platform == 'darwin': from sysconfig import get_config_var |