Skip to content

Commit

Permalink
build/sage_bootstrap/expand_class.py: Restore Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Oct 17, 2023
1 parent b7c1c8f commit aca1f93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/sage_bootstrap/expand_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@

class PackageClass(object):

def __init__(self, *package_names_or_classes, exclude=(),
include_dependencies=False, exclude_dependencies=False,
**filters):
def __init__(self, *package_names_or_classes, **filters):
self.__names = set()
exclude = filters.pop('exclude', ())
include_dependencies = filters.pop('include_dependencies', False)
exclude_dependencies = filters.pop('exclude_dependencies', False)
filenames = filters.pop('has_files', [])
no_filenames = filters.pop('no_files', [])
excluded = []
Expand Down

0 comments on commit aca1f93

Please sign in to comment.