mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Use list constructor or built-in method instead of copy module
This commit is contained in:
parent
ba661a9c39
commit
088025fc5b
3 changed files with 5 additions and 8 deletions
|
@ -14,7 +14,6 @@ import zipfile
|
|||
import posixpath
|
||||
import sysconfig
|
||||
import subprocess
|
||||
from copy import copy
|
||||
from glob import iglob as std_iglob
|
||||
from fnmatch import fnmatchcase
|
||||
from inspect import getsource
|
||||
|
@ -384,7 +383,7 @@ byte_compile(files, optimize=%r, force=%r,
|
|||
elif optimize == 2:
|
||||
cmd.insert(1, "-OO")
|
||||
|
||||
env = copy(os.environ)
|
||||
env = os.environ.copy()
|
||||
env['PYTHONPATH'] = os.path.pathsep.join(sys.path)
|
||||
try:
|
||||
spawn(cmd, env=env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue