Skip to content

Commit

Permalink
Fix import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Sep 2, 2024
1 parent be72854 commit f056fc0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions intermine/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@

import requests

try:
from urlparse import urlparse
from UserDict import DictMixin
from urllib import urlopen
from urllib import urlencode
except ImportError:
from urllib.parse import urlparse
from urllib.parse import urlencode
from collections import MutableMapping as DictMixin
from urllib.request import urlopen
from urllib.parse import urlparse
from urllib.parse import urlencode
from collections.abc import MutableMapping as DictMixin
from urllib.request import urlopen

try:
import simplejson as json # Prefer this as it is faster
Expand Down

0 comments on commit f056fc0

Please sign in to comment.