Skip to content

Commit d7e8bba

Browse files
committed
Removed unnecessary variable
1 parent ee77a12 commit d7e8bba

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pythonforandroid/distribution.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def get_distribution(
7373
arch_name : str
7474
The target architecture name to compile against, included in the dist because
7575
it cannot be changed later during APK packaging.
76-
This is a required, keyword-only argument.
7776
recipes : list
7877
The recipes that the distribution must contain.
7978
force_download: bool
@@ -91,9 +90,7 @@ def get_distribution(
9190
a new one with the current requirements.
9291
'''
9392

94-
existing_dists = Distribution.get_distributions(ctx)
95-
96-
possible_dists = existing_dists[:]
93+
possible_dists = Distribution.get_distributions(ctx)
9794

9895
# Will hold dists that would be built in the same folder as an existing dist
9996
folder_match_dist = None

tests/test_distribution.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def setUp_distribution_with_bootstrap(self, bs, **kwargs):
5656
arch_name=self.TEST_ARCH,
5757
**kwargs
5858
)
59-
print('distribution when made is', self.ctx.bootstrap.distribution)
6059

6160
def tearDown(self):
6261
"""Here we make sure that we reset a possible bootstrap created in
@@ -158,7 +157,6 @@ def test_get_distributions(
158157
]
159158

160159
dists = self.ctx.bootstrap.distribution.get_distributions(self.ctx)
161-
print('dists are', dists)
162160
self.assertIsInstance(dists, list)
163161
self.assertEqual(len(dists), 1)
164162
self.assertIsInstance(dists[0], Distribution)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy