Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a py2 compat issue in neonatal_cortex.py #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcupitt
Copy link

@jcupitt jcupitt commented May 8, 2019

It was testing for "stringiness" with isinstance(str), but this only
works with py3.

Instead, test for "functionness" with callable(x). This was deprecated
in py3.1, but has been undeprecated for py3.2+, so it's safer and
simpler.

https://bugs.python.org/issue10518

It was testing for "stringiness" with `isinstance(str)`, but this only
works with py3.

Instead, test for "functionness" with `callable(x)`. This was deprecated
in py3.1, but has been undeprecated for py3.2+, so it's safer and
simpler.

https://bugs.python.org/issue10518
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.

1 participant