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
regex version pin breaks Python 3 support #23
Comments
I am affected by this bug as well. |
Hey guys, we are looking into this. I'll try and figure out what the issue was with the |
@russjones can you give us a quick status update? |
By the way, we just updated the Benchmarks for Flanker comparing the pinned version on the You can test it yourself using the following script: import sys
import time
from flanker import mime
from flanker.mime import MimeError
def parse(data, count):
times = []
for _ in xrange(count):
try:
start = time.time()
msg = mime.from_string(data)
for p in msg.walk():
if p.is_attachment():
p.body
times.append(time.time() - start)
except MimeError:
print "Bad MIME"
mime.recover(data)
return times
if __name__ == "__main__":
with open(sys.argv[1]) as f:
data = f.read()
times = parse(data, 50)
print 'Mean:', reduce(lambda x, y: x + y, times) / len(times) |
Currently regex has a hard version pin on a very old version of the regex package. This version does not support Python 3, which results in flanker also not being usable in Python 3 projects.
The version pin has a comment that indicates that this is done for performance reasons. I am wondering a few things:
The text was updated successfully, but these errors were encountered: