Skip to content

Commit

Permalink
remove stdout juggling
Browse files Browse the repository at this point in the history
can't remeber why this was needed, but it's missing up python 3 unicode support
  • Loading branch information
tingletech committed Feb 12, 2020
1 parent 92f813f commit 0714554
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions pynux/nxid.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,9 @@ def get_owner(erc):
def check_ezid(ark, ezid):
''' check to see if the ARK is listed in EZID, returns raw ERC or `None`'''
try:
sys.stdout = open(os.devnull, 'w')
return ezid.view(ark)
except HTTPError:
return None
finally:
sys.stdout = sys.__stdout__


def find_ark(s):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages
setup(
name='pynux',
version = "1.0.5",
version = "1.0.6",
packages = find_packages(),
install_requires = [
'requests',
Expand Down

0 comments on commit 0714554

Please sign in to comment.