Skip to content

Commit

Permalink
Remove py2.X support
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Jul 1, 2022
1 parent 9079a1a commit 7808ab0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/bioservices/uniprot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"""
import io
import sys
import time
import urllib
import json
Expand Down Expand Up @@ -808,11 +807,7 @@ def get_df(self, entries, nChunk=100, organism=None, limit=10):
if len(res) == 0:
self.services.logging.warning("some entries %s not found" % entries)
else:
try:
# python 2.X
df = pd.read_csv(io.StringIO(unicode(res)), sep="\t")
except:
df = pd.read_csv(io.StringIO(str(res)), sep="\t")
df = pd.read_csv(io.StringIO(str(res)), sep="\t")

if isinstance(output, type(None)):
output = df.copy()
Expand Down

0 comments on commit 7808ab0

Please sign in to comment.