@@ -44,7 +44,7 @@ license expression engine in several projects and products such as:
4444- license.sh https://github.com/webscopeio/license.sh
4545- liferay_inbound_checker https://github.com/carmenbianca/liferay_inbound_checker
4646- REUSE https://reuse.software/ and https://github.com/fsfe/reuse-tool
47- - ScanCode-io https://github.com/nexB/scancode.io
47+ - ScanCode-io https://github.com/nexB/scancode.io
4848- ScanCode-toolkit https://github.com/nexB/scancode-toolkit
4949
5050See also for details:
@@ -136,17 +136,17 @@ Create an SPDX Licensing and parse expressions::
136136 LicenseSymbol('MIT')
137137 )
138138 )
139-
139+
140140 >>> str(parsed)
141141 'GPL-2.0-only OR (LGPL-2.1-only AND MIT)'
142-
142+
143143 >>> licensing.parse('unknwon with foo', validate=True, strict=True)
144144 license_expression.ExpressionParseError: A plain license symbol cannot be used
145145 as an exception in a "WITH symbol" statement. for token: "foo" at position: 13
146-
146+
147147 >>> licensing.parse('unknwon with foo', validate=True)
148148 license_expression.ExpressionError: Unknown license key(s): unknwon, foo
149-
149+
150150 >>> licensing.validate('foo and MIT and GPL-2.0+')
151151 ExpressionInfo(
152152 original_expression='foo and MIT and GPL-2.0+',
@@ -183,7 +183,7 @@ Create a Licensing with your own license symbols::
183183 >>> expression = 'GPL-2.0+ with Classpath or (bsd)'
184184 >>> parsed = licensing.parse(expression)
185185 >>> expected = 'GPL-2.0+ WITH Classpath OR BSD'
186- >>> assertparsed .render('{symbol.key}') == expected
186+ >>> assert parsed .render('{symbol.key}') == expected
187187
188188 >>> expected = [
189189 ... LicenseSymbol('GPL-2.0+'),
0 commit comments