pinax/pinax-wiki

error in utils.py

Closed this issue · 2 comments

File "/home/XXX/lib/python2.6/site-packages/wiki/utils.py", line 7
for x in settings.WIKI_BINDERS
^
SyntaxError: invalid syntax

Full code from utils.py:

from .conf import settings

def binders_map():
return {
x.bind_to_model_name: x
for x in settings.WIKI_BINDERS
}

def object_slug(wiki):
if wiki:
slug = wiki.content_type.model
else:
slug = "default"
return slug

@crrobles2 what version of Python are you running?

Oh, I see, python2.6. This version is not supported.