Use list constructor or built-in method instead of copy module

This commit is contained in:
Éric Araujo 2011-06-04 18:45:40 +02:00
parent ba661a9c39
commit 088025fc5b
3 changed files with 5 additions and 8 deletions

View file

@ -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)