8000 fix tabs->spaces · simudream/python-for-android@1d18540 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d18540

Browse files
committed
fix tabs->spaces
1 parent 9197220 commit 1d18540

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

pythonforandroid/patching.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,64 @@
22

33

44
def check_all(*callables):
5-
def check(**kwargs):
6-
return all(c(**kwargs) for c in callables)
7-
return check
5+
def check(**kwargs):
6+
return all(c(**kwargs) for c in callables)
7+
return check
88

99

1010
def check_any(*callables):
11-
def check(**kwargs):
12-
return any(c(**kwargs) for c in callables)
13-
return check
11+
def check(**kwargs):
12+
return any(c(**kwargs) for c in callables)
13+
return check
1414

1515

1616
def is_platform(platform):
17-
def is_x(**kwargs):
18-
return uname()[0] == platform
19-
return is_x
17+
def is_x(**kwargs):
18+
return uname()[0] == platform
19+
return is_x
2020

2121
is_linux = is_platform('Linux')
2222
is_darwin = is_platform('Darwin')
2323

2424

2525
def is_arch(xarch):
26-
def is_x(arch, **kwargs):
27-
return arch.arch == xarch
28-
return is_x
26+
def is_x(arch, **kwargs):
27+
return arch.arch == xarch
28+
return is_x
2929

3030

3131
def is_api_gt(apiver):
32-
def is_x(recipe, **kwargs):
33-
return recipe.ctx.android_api > apiver
34-
return is_x
32+
def is_x(recipe, **kwargs):
33+
return recipe.ctx.android_api > apiver
34+
return is_x
3535

3636

3737
def is_api_gte(apiver):
38-
def is_x(recipe, **kwargs):
39-
return recipe.ctx.android_api >= apiver
40-
return is_x
38+
def is_x(recipe, **kwargs):
39+
return recipe.ctx.android_api >= apiver
40+
return is_x
4141

4242

4343
def is_api_lt(apiver):
44-
def is_x(recipe, **kwargs):
45-
return recipe.ctx.android_api < apiver
46-
return is_x
44+
def is_x(recipe, **kwargs):
45+
return recipe.ctx.android_api < apiver
46+
return is_x
4747

4848

4949
def is_api_lte(apiver):
50-
def is_x(recipe, **kwargs):
51-
return recipe.ctx.android_api <= apiver
52-
return is_x
50+
def is_x(recipe, **kwargs):
51+
return recipe.ctx.android_api <= apiver
52+
return is_x
5353

5454

5555
def is_api(apiver):
56-
def is_x(recipe, **kwargs):
57-
return recipe.ctx.android_api == apiver
58-
return is_x
56+
def is_x(recipe, **kwargs):
57+
return recipe.ctx.android_api == apiver
58+
return is_x
5959

6060

6161
def will_build(recipe_name):
62-
def will(recipe, **kwargs):
63-
return recipe_name in recipe.ctx.recipe_build_order
64-
return will
62+
def will(recipe, **kwargs):
63+
return recipe_name in recipe.ctx.recipe_build_order
64+
return will
6565

0 commit comments

Comments
 (0)
0