copy syntax for python 2.7

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-02 12:55:51 -05:00
parent 505cbc78a0
commit cee66d272f
+1 -1
View File
@@ -32,7 +32,7 @@ from docopt import docopt
def cleanup_sysargv(argv):
new = []
for arg in argv.copy():
for arg in argv[:]:
if arg.startswith('-e '):
new.append(arg)
del argv[argv.index(arg)]