Skip to content

Commit cf417bd

Browse files
committed
Format code
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent c2eac75 commit cf417bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/license_expression/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
from license_expression._pyahocorasick import Trie as AdvancedTokenizer
6161
from license_expression._pyahocorasick import Token
6262

63-
6463
# append new error codes to PARSE_ERRORS by monkey patching
6564
PARSE_EXPRESSION_NOT_UNICODE = 100
6665
if PARSE_EXPRESSION_NOT_UNICODE not in PARSE_ERRORS:
@@ -594,13 +593,13 @@ def dedup(self, expression):
594593
for arg in exp.args:
595594
if isinstance(arg, (self.AND, self.OR)):
596595
# Run this recursive function if there is another AND/OR expression
597-
# and add the expression to the expression_list.
596+
# and add the expression to the expression_list.
598597
expression_list.append(self.dedup(arg))
599598
else:
600599
# Get the license key from the expression as a list.
601600
exp_key = self.license_keys(arg)
602601
# We treat the license with exception as a single license key so
603-
# that it won't over de-dupped for case such as
602+
# that it won't over de-dupped for case such as
604603
# gpl-2.0 WITH classpath exception AND gpl-2.0
605604
if type(arg).__name__ == 'LicenseWithExceptionSymbol':
606605
key = ' WITH '.join(exp_key)
@@ -1405,6 +1404,7 @@ def validate_symbols(symbols, validate_keys=False):
14051404

14061405
return warnings, errors
14071406

1407+
14081408
def combine_expressions(expressions, relation='AND', licensing=Licensing()):
14091409
"""
14101410
Return a combined license expression string with relation, given a list of
@@ -1438,4 +1438,4 @@ def combine_expressions(expressions, relation='AND', licensing=Licensing()):
14381438
if relation == 'OR':
14391439
return str(licensing.OR(*expressions))
14401440
else:
1441-
return str(licensing.AND(*expressions))
1441+
return str(licensing.AND(*expressions))

0 commit comments

Comments
 (0)