removed python2 compatibility code

This commit is contained in:
Akash Mahanty committed 2020-11-21 17:00:11 +05:30
1 parent 9f847a5e55
commit 5088305a58
6 files changed
+66 -93

No files matched your search

-1
View File
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
import re
+2 -6
View File
@@ -1,17 +1,13 @@
# -*- coding: utf-8 -*-
import re
import sys
import json
from datetime import datetime, timedelta
from waybackpy.exceptions import WaybackError
from waybackpy.__version__ import __version__
from urllib.request import Request, urlopen
from urllib.error import URLError
if sys.version_info >= (3, 0): # If the python ver >= 3
from urllib.request import Request, urlopen
from urllib.error import URLError
else: # For python2.x
from urllib2 import Request, urlopen, URLError
default_UA = "waybackpy python package - https://github.com/akamhy/waybackpy"