Skip to content

Commit

Permalink
Fix aligment of %20s fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dhomeier committed Oct 25, 2022
1 parent 24d7440 commit 2c57968
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions glue/_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ def help(self):

def __str__(self):
if self.installed:
status = f'INSTALLED ({self.version:s})'
status = f'INSTALLED ({self.version})'
elif self.failed:
status = f'FAILED ({self.info:s})'
status = f'FAILED ({self.info})'
else:
status = f'MISSING ({self.info:s})'
return f"{self.package:20s}:\t{status:s}"
status = f'MISSING ({self.info})'
return f"{self.package:>20}:\t{status}"


class Python(Dependency):
Expand All @@ -84,10 +84,10 @@ class QtDependency(Dependency):

def __str__(self):
if self.installed:
status = f'INSTALLED ({self.version:s})'
status = f'INSTALLED ({self.version})'
else:
status = 'NOT INSTALLED'
return f"{self.module:20s}:\t{status:s}"
return f"{self.module:>20}:\t{status}"


class PyQt5(QtDependency):
Expand Down

0 comments on commit 2c57968

Please sign in to comment.