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

only init basestring in python2 #49

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

Conversation

commutecat
Copy link

python3 will load this module first and throw exception on basestring before loading re2.pyx

python3  will load this module first and throw exception on basestring before loading re2.pyx
@rmax
Copy link

rmax commented Jan 26, 2017

The re2.cpp file is generated via cython from the re2.pyx file. Check if regenerating the file with cython fixes your issue by running make.

@zedeus
Copy link

zedeus commented Feb 11, 2017

I encountered this issue as well. This pull request fixes it.

@leewz
Copy link

leewz commented Feb 4, 2018

The real problem is that src/re2.pyx was updated to support Python 3 (updated 2015 June), but src/re2.cpp wasn't regenerated (updated 2015 May). #49 modifies an outdated auto-generated file.

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.

4 participants