Skip to content

Commit dada410

Browse files
author
gabriel pettier
committed
some more pep8 fixes and remove unused imports
1 parent 46c125c commit dada410

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
from pythonforandroid.toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
3-
import sh
4-
from os.path import exists, join
1+
from pythonforandroid.toolchain import CythonRecipe, IncludedFilesBehaviour
52

63

74
class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):

pythonforandroid/recipes/pyjnius/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
2-
from pythonforandroid.toolchain import CythonRecipe, shprint, ArchAndroid, current_directory, info
1+
from pythonforandroid.toolchain import CythonRecipe, shprint, \
2+
current_directory, info
33
import sh
4-
import glob
54
from os.path import join, exists
65

76

87
class PyjniusRecipe(CythonRecipe):
9-
version = 'master'
8+
version = 'master'
109
url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
1110
name = 'pyjnius'
1211
depends = ['python2', ('sdl2', 'sdl'), 'six']
1312
site_packages_name = 'jnius'
13+
1414
def prebuild_arch(self, arch):
1515
super(PyjniusRecipe, self).prebuild_arch(arch)
1616
if 'sdl2' in self.ctx.recipe_build_order:
@@ -25,7 +25,8 @@ def postbuild_arch(self, arch):
2525
super(PyjniusRecipe, self).postbuild_arch(arch)
2626
info('Copying pyjnius java class to classes build dir')
2727
with current_directory(self.get_build_dir(arch.arch)):
28-
shprint(sh.cp, '-a', join('jnius', 'src', 'org'), self.ctx.javaclass_dir)
28+
shprint(sh.cp, '-a', join('jnius', 'src', 'org'),
29+
self.ctx.javaclass_dir)
2930

3031

3132
recipe = PyjniusRecipe()

pythonforandroid/toolchain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def format(self, record):
7575
formatter = LevelDifferentiatingFormatter('%(message)s')
7676
ch.setFormatter(formatter)
7777
logger.addHandler(ch)
78+
7879
info = logger.info
7980
debug = logger.debug
8081
warning = logger.warning

0 commit comments

Comments
 (0)