Skip to content

Replace basestring with six.string_types#90

Merged
Jeff-Meadows merged 1 commit intomasterfrom
replace_basestring
Nov 16, 2015
Merged

Replace basestring with six.string_types#90
Jeff-Meadows merged 1 commit intomasterfrom
replace_basestring

Conversation

@jmoldow
Copy link
Contributor

@jmoldow jmoldow commented Nov 16, 2015

On Python 3, calling setup_logging() in boxsdk.util.log
would always raise

NameError: name 'basestring' is not defined

On Python 3, this prevented LoggingNetwork from being
initialized without passing an existing Logger.

Replace this usage of basestring with the equivalent
six.string_types.

Add unit test coverage of boxsdk.util.log.

Bump version to 1.3.2.

@boxcla
Copy link

boxcla commented Nov 16, 2015

Verified that @jmoldow has signed the CLA. Thanks for the pull request!

On Python 3, calling `setup_logging()` in `boxsdk.util.log`
would always raise

    NameError: name 'basestring' is not defined

On Python 3, this prevented `LoggingNetwork` from being
initialized without passing an existing `Logger`.

Replace this usage of `basestring` with the equivalent
`six.string_types`.

Add unit test coverage of `boxsdk.util.log`.

Bump version to 1.3.2.
Jeff-Meadows added a commit that referenced this pull request Nov 16, 2015
Replace `basestring` with `six.string_types`
@Jeff-Meadows Jeff-Meadows merged commit 726dc0a into master Nov 16, 2015
@jmoldow jmoldow deleted the replace_basestring branch May 25, 2016 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants