You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
Python 2.6.6 doesn't know the syntax for Set as ={1,2,3}
I needed to rewrite all Set constructions with {} syntax into: NEW_CONTENT_REQUIRED_KEYS = Set(["type", "title", "space", "body"])
The text was updated successfully, but these errors were encountered:
Python 266 doesn't know the syntax for Set as ={1,2,3}
I needed to rewrite it into:
NEW_CONTENT_REQUIRED_KEYS = Set(["type", "title", "space", "body"])
—
Reply to this email directly or view it on GitHub #13.
For backwards compatibility with python 2.2.6
It seems it is necessary to change all {item1,item2} into set([item1,item2]) (without capital s that was my typo before)
and then insert Class definition in api.py because python 2.6.6 doesn't have NullHandler in logging module, so you need to create a workaround
class NullHandler(logging.Handler):
def emit(self, record):
pass
After that changing line: nh = logging.NullHandler()
into nh = NullHandler()
using defined NullHandler object
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using python 2.6.6 and I am getting syntax error using ConfluenceAPI in file api.py:
NEW_CONTENT_REQUIRED_KEYS = {"type", "title", "space", "body"}
^
SyntaxError: invalid syntax
Python 2.6.6 doesn't know the syntax for Set as ={1,2,3}
I needed to rewrite all Set constructions with {} syntax into:
NEW_CONTENT_REQUIRED_KEYS = Set(["type", "title", "space", "body"])
The text was updated successfully, but these errors were encountered: