Skip to content

Commit e6be47a

Browse files
committed
Fix missing renames of Bootstrap.list_bootstraps -> Bootstrap.all_bootstraps
1 parent 9b608e8 commit e6be47a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pythonforandroid/toolchain.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def recipes(self, args):
785785

786786
def bootstraps(self, _args):
787787
"""List all the bootstraps available to build with."""
788-
for bs in Bootstrap.list_bootstraps():
788+
for bs in Bootstrap.all_bootstraps():
789789
bs = Bootstrap.get_bootstrap(bs, self.ctx)
790790
print('{Fore.BLUE}{Style.BRIGHT}{bs.name}{Style.RESET_ALL}'
791791
.format(bs=bs, Fore=Out_Fore, Style=Out_Style))
@@ -828,7 +828,7 @@ def clean_bootstrap_builds(self, _args):
828828
"""Delete all the bootstrap builds."""
829829
if exists(join(self.ctx.build_dir, 'bootstrap_builds')):
830830
shutil.rmtree(join(self.ctx.build_dir, 'bootstrap_builds'))
831-
# for bs in Bootstrap.list_bootstraps():
831+
# for bs in Bootstrap.all_bootstraps():
832832
# bs = Bootstrap.get_bootstrap(bs, self.ctx)
833833
# if bs.build_dir and exists(bs.build_dir):
834834
# info('Cleaning build for {} bootstrap.'.format(bs.name))

tests/test_bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(self, name):
143143

144144
def test_all_bootstraps(self):
145145
"""A test which will initialize a bootstrap and will check if the
146-
method :meth:`~pythonforandroid.bootstrap.Bootstrap.list_bootstraps`
146+
method :meth:`~pythonforandroid.bootstrap.Bootstrap.all_bootstraps `
147147
returns the expected values, which should be: `empty", `service_only`,
148148
`webview` and `sdl2`
149149
"""

0 commit comments

Comments
 (0)