Skip to content

Commit f22fc46

Browse files
committed
Style fixes
1 parent f74c546 commit f22fc46

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

pythonforandroid/entrypoints.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from pythonforandroid.recommendations import check_python_version
22
from pythonforandroid.util import BuildInterruptingException, handle_build_exception
33

4+
45
def main():
56
"""
67
Main entrypoint for running python-for-android as a script.

pythonforandroid/recommendations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def check_target_api(api, arch):
9595
RECOMMENDED_NDK_API = 21
9696
OLD_NDK_API_MESSAGE = ('NDK API less than {} is not supported'.format(MIN_NDK_API))
9797

98+
9899
def check_ndk_api(ndk_api, android_api):
99100
"""Warn if the user's NDK is too high or low."""
100101
if ndk_api > android_api:
@@ -107,6 +108,7 @@ def check_ndk_api(ndk_api, android_api):
107108
if ndk_api < MIN_NDK_API:
108109
warning(OLD_NDK_API_MESSAGE)
109110

111+
110112
MIN_PYTHON_MAJOR_VERSION = 3
111113
MIN_PYTHON_MINOR_VERSION = 6
112114
MIN_PYTHON_VERSION = LooseVersion('{major}.{minor}'.format(major=MIN_PYTHON_MAJOR_VERSION,
@@ -125,6 +127,7 @@ def check_ndk_api(ndk_api, android_api):
125127
user_minor=sys.version_info.minor,
126128
min_version=MIN_PYTHON_VERSION)
127129

130+
128131
def check_python_version():
129132
if sys.version_info.major < MIN_PYTHON_MAJOR_VERSION:
130133
raise BuildInterruptingException(PY2_ERROR_TEXT)

pythonforandroid/toolchain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from pythonforandroid import __version__
1212
from pythonforandroid.pythonpackage import get_dep_names_of_package
1313
from pythonforandroid.recommendations import (
14-
RECOMMENDED_NDK_API, RECOMMENDED_TARGET_API, check_python_version)
15-
from pythonforandroid.util import BuildInterruptingException, handle_build_exception
14+
RECOMMENDED_NDK_API, RECOMMENDED_TARGET_API)
15+
from pythonforandroid.util import BuildInterruptingException
1616
from pythonforandroid.entrypoints import main
1717

1818

@@ -101,6 +101,7 @@ def check_python_dependencies():
101101
toolchain_dir = dirname(__file__)
102102
sys.path.insert(0, join(toolchain_dir, "tools", "external"))
103103

104+
104105
def add_boolean_option(parser, names, no_names=None,
105106
default=True, dest=None, description=None):
106107
group = parser.add_argument_group(description=description)

pythonforandroid/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from os import getcwd, chdir, makedirs, walk, uname
44
import sh
55
import shutil
6-
import sys
76
from fnmatch import fnmatch
87
from tempfile import mkdtemp
98

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
data_files = []
1818

1919

20+
2021
# must be a single statement since buildozer is currently parsing it, refs:
2122
# https://github.com/kivy/buildozer/issues/722
2223
install_reqs = [

0 commit comments

Comments
 (0)