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

python 3.5 compatibility #141

Open
csfreebird opened this issue Feb 4, 2019 · 1 comment
Open

python 3.5 compatibility #141

csfreebird opened this issue Feb 4, 2019 · 1 comment

Comments

@csfreebird
Copy link

csfreebird commented Feb 4, 2019

I am using cldoc with python 3.5.2, ran into some errors and fixed them one by one.

  1. cldoc/nodes/enum.py的 line 30 and 32
    tokens.next() => next(tokens)
  2. cldoc/nodes/function.py
    comment out line 102:
    from namespace import Namespace
  3. in cldoc/nodes/field.py, add cmp function
   def cmp(a, b):
    return (a > b) - (a < b) 
@9prady9
Copy link

9prady9 commented Feb 18, 2019

With Python 3.7: Using tokens.__next__() seems to work and I only changed that, didn't have to do additional steps @csfreebird had to do.

Update: nevermind, I got the message much later, I guess we do need the 2 and 3 also. 👍 @csfreebird

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

2 participants