Skip to content

Commit b1f7033

Browse files
authored
Merge pull request #1378 from AndreMiras/feature/linter_fixes
Linter fixes E115, E201, E221, E251, E271, E703
2 parents 830cae4 + 87c2fb2 commit b1f7033

File tree

17 files changed

+28
-32
lines changed

17 files changed

+28
-32
lines changed

pythonforandroid/bootstraps/pygame/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run_distribute(self):
5454
if not exists('python-install'):
5555
shprint(sh.cp, '-a', self.ctx.get_python_install_dir(), './python-install')
5656

57-
self.distribute_libs(arch, [join(self.build_dir, 'libs', arch.arch), self.ctx.get_libs_dir(arch.arch)]);
57+
self.distribute_libs(arch, [join(self.build_dir, 'libs', arch.arch), self.ctx.get_libs_dir(arch.arch)])
5858
self.distribute_aars(arch)
5959
self.distribute_javaclasses(self.ctx.javaclass_dir)
6060

pythonforandroid/bootstraps/pygame/build/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def select(fn):
183183
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
184184
dirs = []
185185
for fn, afn in files:
186-
# print('%s: %s' % (tfn, fn))
187186
dn = dirname(afn)
188187
if dn not in dirs:
189188
# create every dirs first if not exist yet

pythonforandroid/bootstraps/pygame/build/buildlib/argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def _get_action_name(argument):
705705
if argument is None:
706706
return None
707707
elif argument.option_strings:
708-
return '/'.join(argument.option_strings)
708+
return '/'.join(argument.option_strings)
709709
elif argument.metavar not in (None, SUPPRESS):
710710
return argument.metavar
711711
elif argument.dest not in (None, SUPPRESS):

pythonforandroid/bootstraps/pygame/build/tools/biglink

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import os
55
import sys
66
import subprocess
77

8-
sofiles = [ ]
8+
sofiles = []
99

1010
for directory in sys.argv[2:]:
1111

@@ -20,7 +20,7 @@ for directory in sys.argv[2:]:
2020
sofiles.append(fn[:-2])
2121

2222
# The raw argument list.
23-
args = [ ]
23+
args = []
2424

2525
for fn in sofiles:
2626
afn = fn + ".o"
@@ -31,7 +31,7 @@ for fn in sofiles:
3131
data = fd.read()
3232
args.extend(data.split(" "))
3333

34-
unique_args = [ ]
34+
unique_args = []
3535
while args:
3636
a = args.pop()
3737
if a in ('-L', ):

pythonforandroid/bootstraps/pygame/build/tools/biglink-jb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ blacklist_libs = (
2525
)
2626

2727
found_libs = []
28-
sofiles = [ ]
28+
sofiles = []
2929

3030
for directory in sys.argv[2:]:
3131

pythonforandroid/bootstraps/pygame/build/tools/liblink

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import subprocess
66
from os import environ
77
from os.path import basename, join
88

9-
libs = [ ]
10-
objects = [ ]
9+
libs = []
10+
objects = []
1111
output = None
1212

1313

pythonforandroid/bootstraps/pygame/build/tools/liblink-jb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import subprocess
66
from os import environ
77
from os.path import basename, join
88

9-
libs = [ ]
10-
libdirs = [ ]
9+
libs = []
10+
libdirs = []
1111
output = None
1212

1313

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def select(fn):
187187
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
188188
dirs = []
189189
for fn, afn in files:
190-
# print('%s: %s' % (tfn, fn))
191190
dn = dirname(afn)
192191
if dn not in dirs:
193192
# create every dirs first if not exist yet

pythonforandroid/bootstraps/service_only/build/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ def select(fn):
178178
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
179179
dirs = []
180180
for fn, afn in files:
181-
# print('%s: %s' % (tfn, fn))
182181
dn = dirname(afn)
183182
if dn not in dirs:
184183
# create every dirs first if not exist yet

pythonforandroid/bootstraps/webview/build/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def select(fn):
179179
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
180180
dirs = []
181181
for fn, afn in files:
182-
# print('%s: %s' % (tfn, fn))
183182
dn = dirname(afn)
184183
if dn not in dirs:
185184
# create every dirs first if not exist yet

0 commit comments

Comments
 (0)