Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
NexSabre committed Aug 10, 2020
1 parent d5b2a5a commit 43eae9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pip2spack/actions/dowload/download_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def process_action(self, configuration):
ready_packages = Verification(configuration.name).available_packages
self.download(ready_packages)

def download(self, ready_packages):
@staticmethod
def download(ready_packages):
for key, value in ready_packages.items():
Messages.info(f"Download latest package for the {key}")

Expand Down
4 changes: 2 additions & 2 deletions src/pip2spack/framework/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Messages:
def package_availability(available: list, unavailable: list):
Messages.info("Package status")
if available:
print("Available to convert:")
print("Available:")
for key in available:
print(f"\t{key}")

Expand All @@ -12,7 +12,7 @@ def package_availability(available: list, unavailable: list):
print()
return

print("\nUnavailable to convert:")
print("\nUnavailable:")
for p in packages_not_found:
print(f'\t{p}')
else:
Expand Down

0 comments on commit 43eae9c

Please sign in to comment.