Skip to content

Add support for Python 3 #1

Description

@tdruez
File "lib/python3.5/site-packages/license_expression.py", line 324, in build
    if isinstance(expression, basestring) and expression.strip():
NameError: name 'basestring' is not defined

Could be solved with the following:

try:
    unicode = unicode
except NameError:
    str = str
    unicode = str
    bytes = bytes
    basestring = (str, bytes)
else:
    str = str
    unicode = unicode
    bytes = str
    basestring = basestring

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions