We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in python 3, urlparse has been renamed to urllib.parse (https://docs.python.org/2/library/urlparse.html).
you can use the following code to try python2's name and on error try python3's name.
try: import urlparse except ImportError: import urllib.parse as urlparse
The text was updated successfully, but these errors were encountered:
To note, this also needs to happen in swagger py or else you'll get an error saying you can't find swagger_model or something.
Sorry, something went wrong.
alternatively, you can do this as well:
import sys if sys.version_info < (3, 0): import urllib import urlparse else: import urllib.request as urllib import urllib.parse as urlparse
Any updates getting this working on python3 ?
No branches or pull requests
in python 3, urlparse has been renamed to urllib.parse (https://docs.python.org/2/library/urlparse.html).
you can use the following code to try python2's name and on error try python3's name.
The text was updated successfully, but these errors were encountered: