Skip to content

Commit 92f813f

Browse files
authored
Merge pull request #25 from tingletech/master
nxid python 3 bug
2 parents 297ae68 + c310a8b commit 92f813f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pynux/nxid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
except ImportError:
1717
# Fall back to Python 2's urllib2
1818
from urllib2 import urlopen
19+
try:
20+
unicode = unicode ## for python 2
21+
except NameError:
22+
unicode = str ## for python 3
1923
import EZID
2024
from pynux import utils
2125
from pynux.utils import utf8_arg

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup, find_packages
33
setup(
44
name='pynux',
5-
version = "1.0.4",
5+
version = "1.0.5",
66
packages = find_packages(),
77
install_requires = [
88
'requests',

0 commit comments

Comments
 (0)