Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Python 3 issues #3

@cclauss

Description

@cclauss

tox.ini is configured to run flake8 tests on Python 2 but not on Python 3.

flake8 testing of https://github.com/IBM/pyxcli on Python 3.6.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./pyxcli/client.py:206:34: F821 undefined name 'basestring'
        if isinstance(endpoints, basestring):
                                 ^

./pyxcli/client.py:226:34: F821 undefined name 'basestring'
        if isinstance(endpoints, basestring):
                                 ^

./pyxcli/response.py:106:29: F821 undefined name 'basestring'
        if isinstance(item, basestring):
                            ^

./pyxcli/response.py:108:37: F821 undefined name 'long'
        elif isinstance(item, (int, long)):
                                    ^

./pyxcli/transports.py:310:34: F821 undefined name 'basestring'
        if isinstance(endpoints, basestring):
                                 ^

./pyxcli/helpers/xml_util.py:52:24: F821 undefined name 'basestring'
    if isinstance(obj, basestring) or not use_repr:
                       ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions