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

Syntax Error #19

Closed
mykinator opened this issue May 15, 2015 · 2 comments
Closed

Syntax Error #19

mykinator opened this issue May 15, 2015 · 2 comments

Comments

@mykinator
Copy link

python WikiExtractor.py
File "WikiExtractor.py", line 877
afterPat = { o:re.compile(openPat+'|'+c, re.DOTALL) for o,c in izip(openDelim, closeDelim)}
^
SyntaxError: invalid syntax

Any idea what I am doing wrong here? I am using python 2.6.1

@ghost
Copy link

ghost commented May 15, 2015

can you post the surrounding lines from the code?

@mykinator
Copy link
Author

Turns out I needed python 2.7. Something to do with needing a dictionary comprehension.

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

No branches or pull requests

1 participant