Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
netsettler committed Sep 15, 2023
1 parent 25bd05a commit 869471c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dcicutils/license_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# to modules, not relative references. Later when things are better installed, we can make refs relative again.
from dcicutils.exceptions import InvalidParameterError
from dcicutils.lang_utils import there_are
from dcicutils.misc_utils import PRINT, get_error_message, local_attrs, ignored, json_file_contents
from dcicutils.misc_utils import PRINT, get_error_message, ignorable, ignored, json_file_contents, local_attrs

T = TypeVar("T")

Expand Down Expand Up @@ -173,6 +173,7 @@ def simplify_license_versions(licenses_spec: str, *, for_package_name) -> str:
# have trouble passing unless both MIT and GPL-3.0 are allowed.
transform_count = 0
original_licenses_spec = licenses_spec
ignorable(original_licenses_spec) # sometimes useful for debugging
while True:
if transform_count > 100: # It'd be surprising if there were even ten of these to convert.
warnings.warn(f"Transforming {for_package_name} {licenses_spec!r} seemed to be looping."
Expand Down

0 comments on commit 869471c

Please sign in to comment.