From 0ed859a1b0f3c72c9cb8bec477831e87883beba6 Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Wed, 3 Dec 2014 19:38:24 +0100 Subject: [PATCH] Fix python 3 imports --- pirate-get.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index a291060..078ae59 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -17,21 +17,22 @@ # You should have received a copy of the GNU Affero General Public License # along with pirate-get. If not, see . -from __future__ import print_function -import __builtin__ -import webbrowser -import urllib -import urllib2 -import re import os -import ConfigParser -import string import random -from HTMLParser import HTMLParser -import argparse -from pprint import pprint -from StringIO import StringIO +import re +import string 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):