error in utils.py
Closed this issue · 2 comments
ChrisOmics commented
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
paltman commented
@crrobles2 what version of Python are you running?
paltman commented
Oh, I see, python2.6
. This version is not supported.