mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
2to3/run.py: Fix compatibility issue with old Python 3.x versions (2to3 does not suport -W and -o).
This commit is contained in:
parent
d86dee6c9a
commit
78a722f38b
@ -17,11 +17,14 @@ try:
|
||||
except OSError:
|
||||
pass
|
||||
os.mkdir('py3k')
|
||||
for dirname in ('locales', 'docs', 'plugins'):
|
||||
for dirname in ('locales', 'docs', 'plugins', 'src', 'test'):
|
||||
shutil.copytree(dirname, os.path.join('py3k', dirname))
|
||||
for filename in ('setup.py',):
|
||||
shutil.copyfile(filename, os.path.join('py3k', filename))
|
||||
os.chdir('py3k')
|
||||
|
||||
files = ['run.py', 'src', 'plugins', 'test', 'setup.py'] + glob('scripts/*')
|
||||
args = ['-wWno', 'py3k']
|
||||
args = ['-wn']
|
||||
fixers = []
|
||||
for fix in ['all', 'def_iteritems', 'def_itervalues', 'def_iterkeys', 'reload']:
|
||||
fixers += ['-f', fix]
|
||||
|
Loading…
Reference in New Issue
Block a user