Skip to content

Conversation

fknorr
Copy link

@fknorr fknorr commented May 29, 2018

Running cldoc with current Python 3.6.5 required two patches:

  • Python3 does not provide cmp(), re-defining manually
  • Removing an unused, incorrect module import

self.type = Type(cursor.type, cursor=cursor)

def compare_same(self, other):
def cmp(a, b):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to submit a PR to do exactly this. Just wanted to note that the author has actually already defined this new cmp function. So instead of defining it here, just add an import at the top of the file,

from ..cmp import cmp

@wtbarnes
Copy link

@jessevdk I've successfully run cldoc under 3.6 with the same fixes that @fknorr has applied here. Do you know what the timeline might be for merging this fix and doing a new release that provides full Python 3 compatibility? Are there additional fixes that need to be made?

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

Successfully merging this pull request may close these issues.

2 participants