Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

invalid syntax on line 82 of couchdb-external-hook.py #43

Closed
sakrafd opened this issue Jan 18, 2010 · 1 comment
Closed

invalid syntax on line 82 of couchdb-external-hook.py #43

sakrafd opened this issue Jan 18, 2010 · 1 comment

Comments

@sakrafd
Copy link

sakrafd commented Jan 18, 2010

I'm getting the following error with the latest version of couchdb-lucene:

SyntaxError: invalid syntax
File "/usr/lib/couchdb/couchdb-lucene/couchdb-lucene-0.5-0.2/tools/couchdb-external-hook.py", line 82
method = req["method"] if "method" in req else req["verb"]

$ python -V
Python 2.4.3

Changing the line to this fixes the error:

method = req["verb"]
if "method" in req:
    method = req["method"]

dave

@rnewson
Copy link
Owner

rnewson commented Jan 18, 2010

It's valid syntax in 2.6 :P

Fixed on master, thanks!

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants