-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
SyntaxError: invalid syntax #18
Comments
Have you run the code through 2to3 yet? The 'u' in front of the quotes suggests that this hasn't been done yet.
Also, please upgrade to feedparser 5.2.0. That line is no longer on line 1353. =) |
yes I did that and now it works. Thanks Brook Humphrey On Fri, Apr 17, 2015 at 9:17 AM, Kurt McKee notifications@github.com
|
I understand the frustration! feedparser development in the near-term is actually going to include making the code run in both Python 2 and Python 3 without running 2to3, so I expect that in a future release this will no longer be an issue. |
Trying to use this on python3 and I'm getting this?
feedparser.py", line 1353
ur'''(([a-zA-Z0-9_-.+]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([a-zA-Z0-9-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?))(?subject=\S+)?''',
^
SyntaxError: invalid syntax
the error is pointing to the last set of ''' before the comma.
I have played with this for a few hours, spliting up the line turing it into a string, etc, etc and no matter what it doesn't like that line.
Thanks
The text was updated successfully, but these errors were encountered: