Skip to content

Commit 27c76cc

Browse files
committed
pep8
1 parent 8a04e8e commit 27c76cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pythonforandroid/bdistapk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Bdist(Command):
2121

2222
@property
2323
def package_type(self):
24-
raise NotImplemented("Subclass must define package_type")
24+
raise NotImplementedError("Subclass must define package_type")
2525

2626
def initialize_options(self):
2727
for option in self.user_options:

pythonforandroid/toolchain.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def add_parser(subparsers, *args, **kwargs):
483483
help='Symlink the dist instead of copying')
484484

485485
parser_packaging = argparse.ArgumentParser(
486-
parents = [generic_parser],
486+
parents=[generic_parser],
487487
add_help=False,
488488
description='common options for packaging (apk, aar)')
489489

@@ -528,12 +528,12 @@ def add_parser(subparsers, *args, **kwargs):
528528
'--signkeypw', dest='signkeypw', action='store', default=None,
529529
help='Password for key alias')
530530

531-
parser_aar = add_parser(
531+
add_parser(
532532
subparsers,
533533
'aar', help='Build an AAR',
534534
parents=[parser_packaging])
535535

536-
parser_apk = add_parser(
536+
add_parser(
537537
subparsers,
538538
'apk', help='Build an APK',
539539
parents=[parser_packaging])
@@ -993,7 +993,7 @@ def _build_package(self, args, package_type):
993993
self.hook("before_apk_build")
994994
os.environ["ANDROID_API"] = str(self.ctx.android_api)
995995
build = imp.load_source('build', join(dist.dist_dir, 'build.py'))
996-
build_args = build.parse_args(args.unknown_args) # this call triggers build.make_package()
996+
build_args = build.parse_args(args.unknown_args) # this call triggers build.make_package()
997997

998998
self.hook("after_apk_build")
999999
self.hook("before_apk_assemble")
@@ -1044,7 +1044,7 @@ def _finish_package(self, args, output, build_args, package_type, output_dir):
10441044
:param package_type: one of 'apk', 'aar'
10451045
:param output_dir: where to put the package file
10461046
"""
1047-
dist = self._dist
1047+
10481048
with current_directory(self._dist.dist_dir):
10491049
package_glob = "*-{}.%s" % package_type
10501050
package_add_version = True

0 commit comments

Comments
 (0)