8000 pymtg.io.get_filenames_dir uses "unicode" · Issue #1 · MTG/pymtg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pymtg.io.get_filenames_dir uses "unicode" #1

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

Open
ffont opened this issue Mar 26, 2018 · 0 comments
Open

pymtg.io.get_filenames_dir uses "unicode" #1

ffont opened this issue Mar 26, 2018 · 0 comments

Comments

@ffont
Copy link
Member
ffont commented Mar 26, 2018

pymtg.io.get_filenames_dir used unicode function which is not compatible with Python 3.
Should check how's that the tests are not breaking and find a fix. Current hacky fix to use this function in Python 3 is to assign pymtg.io.unicode to str (unicode is renamed to str in Python 3).

pymtg/pymtg/io/__init__.py

Lines 107 to 111 in 0d6132d

folders.append(unicode(path, 'utf-8'))
except TypeError: # already unicode
folders.append(path)
try:
names.append(unicode(f, 'utf-8'))

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

1 participant
0