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 compatibility #3

Open
nosamanuel opened this issue Jan 17, 2017 · 2 comments
Open

Python 3 compatibility #3

nosamanuel opened this issue Jan 17, 2017 · 2 comments

Comments

@nosamanuel
Copy link
Owner

No description provided.

@brettatoms
Copy link

This is something I might be interested in working on. Is the plan to be compatible with Python 2.7 and Python 3.x or drop Python 2.7 support altogether?

@adamlwgriffiths
Copy link

adamlwgriffiths commented Mar 22, 2021

It's definitely not working ootb

>>> import cottonmouth.tags
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<snip>/.venv/lib/python3.8/site-packages/cottonmouth/tags.py", line 4, in <module>
    class Tag(unicode):
NameError: name 'unicode' is not defined

The python3 branch seems to work.
Any plans to release that?

adamlwgriffiths added a commit to adamlwgriffiths/cottonmouth that referenced this issue Mar 22, 2021
adamlwgriffiths added a commit to adamlwgriffiths/cottonmouth that referenced this issue Mar 22, 2021
Use six module to support both py2 and py3.
Add six as a dependency of cottonmouth.
adamlwgriffiths added a commit to adamlwgriffiths/cottonmouth that referenced this issue Mar 22, 2021
Use six module to support both py2 and py3.
Add six as a dependency of cottonmouth.
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

3 participants