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

How to port sexmachine to Python3 #6

Open
t-pfaff opened this issue Jul 28, 2016 · 2 comments
Open

How to port sexmachine to Python3 #6

t-pfaff opened this issue Jul 28, 2016 · 2 comments

Comments

@t-pfaff
Copy link

t-pfaff commented Jul 28, 2016

Had to change a few lines to make it work in Python3:

mapping.py
Comment out lines 75 and 76:

#u = u.replace(pattern.decode("utf-8"), unichr(code))
#u = u.replace(pattern, unichr(code))

And add a line 76:
pass

detector.py
Change line 80:
best = list(self.names[name].keys())[0]

Change line 98:
return (len(list(country_values)),

@t-pfaff
Copy link
Author

t-pfaff commented Jul 28, 2016

Probably you want to add this to readme.md?

@chaitjo
Copy link

chaitjo commented Oct 15, 2016

Can confirm it works!

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