1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Fix python 3 imports

This commit is contained in:
Rnhmjoj 2014-12-03 19:38:24 +01:00
parent a8aa82c7e9
commit 0ed859a1b0

View File

@ -17,21 +17,22 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with pirate-get. If not, see <http://www.gnu.org/licenses/>. # along with pirate-get. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
import __builtin__
import webbrowser
import urllib
import urllib2
import re
import os import os
import ConfigParser
import string
import random import random
from HTMLParser import HTMLParser import re
import argparse import string
from pprint import pprint
from StringIO import StringIO
import gzip import gzip
import configparser
import argparse
import builtins
import webbrowser
import urllib.request as request
import urllib.parse as parse
from html.parser import HTMLParser
from pprint import pprint
from io import StringIO, BytesIO
class NoRedirection(urllib2.HTTPErrorProcessor): class NoRedirection(urllib2.HTTPErrorProcessor):