Skip to content
Snippets Groups Projects
Commit ca9a3ffc authored by Pavel Kácha's avatar Pavel Kácha
Browse files

More explicit (and correct) py version check

parent 10d629e1
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ from operator import itemgetter ...@@ -13,7 +13,7 @@ from operator import itemgetter
fix_logging_filename = str if version_info<(2, 7) else lambda x: x fix_logging_filename = str if version_info<(2, 7) else lambda x: x
if version_info > (3, 0): if version_info[0] >= 3:
import http.client as httplib import http.client as httplib
from urllib.parse import urlparse from urllib.parse import urlparse
from urllib.parse import urlencode from urllib.parse import urlencode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment