Skip to content

Commit

Permalink
Removed unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
inclement committed Sep 25, 2019
1 parent ee77a12 commit d7e8bba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions pythonforandroid/distribution.py
Expand Up @@ -73,7 +73,6 @@ def get_distribution(
arch_name : str
The target architecture name to compile against, included in the dist because
it cannot be changed later during APK packaging.
This is a required, keyword-only argument.
recipes : list
The recipes that the distribution must contain.
force_download: bool
Expand All @@ -91,9 +90,7 @@ def get_distribution(
a new one with the current requirements.
'''

existing_dists = Distribution.get_distributions(ctx)

possible_dists = existing_dists[:]
possible_dists = Distribution.get_distributions(ctx)

# Will hold dists that would be built in the same folder as an existing dist
folder_match_dist = None
Expand Down
2 changes: 0 additions & 2 deletions tests/test_distribution.py
Expand Up @@ -56,7 +56,6 @@ def setUp_distribution_with_bootstrap(self, bs, **kwargs):
arch_name=self.TEST_ARCH,
**kwargs
)
print('distribution when made is', self.ctx.bootstrap.distribution)

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

dists = self.ctx.bootstrap.distribution.get_distributions(self.ctx)
print('dists are', dists)
self.assertIsInstance(dists, list)
self.assertEqual(len(dists), 1)
self.assertIsInstance(dists[0], Distribution)
Expand Down

0 comments on commit d7e8bba

Please sign in to comment.