Skip to content

Commit

Permalink
sage_bootstrap.app: Restore Python 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jan 16, 2024
1 parent 8ff9e85 commit b3be864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/sage_bootstrap/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def list_cls(self, *package_classes, **filters):
for pkg_name in pc.names:
print(pkg_name)

def properties(self, *package_classes, props=['path', 'version_with_patchlevel', 'type', 'source', 'trees'],
format='plain'):
def properties(self, *package_classes, **kwds):
"""
Show the properties of given packages
Expand All @@ -89,6 +88,8 @@ def properties(self, *package_classes, props=['path', 'version_with_patchlevel',
source_maxima='normal'
trees_maxima='SAGE_LOCAL'
"""
props = kwds.pop('props', ['path', 'version_with_patchlevel', 'type', 'source', 'trees'])
format = kwds.pop('format', 'plain')
log.debug('Looking up properties')
pc = PackageClass(*package_classes)
for package_name in pc.names:
Expand Down

0 comments on commit b3be864

Please sign in to comment.