mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Remove redundant imports.
This commit is contained in:
parent
c53ae58954
commit
54540ec917
7 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue