aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 08:00:43 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 08:00:43 +0200
commit639dffb7d27cc49684a6cb2a8ad57b936b1e01dc (patch)
tree1a11bc1ea366bb9eb2df2af82e3e394e4bfcbb04 /pyaggr3g470r/utils.py
parentRelease 5.6.6. (diff)
downloadnewspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.tar.gz
newspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.tar.bz2
newspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.zip
Python 3 support
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-xpyaggr3g470r/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py
index 0238e9e5..d0419362 100755
--- a/pyaggr3g470r/utils.py
+++ b/pyaggr3g470r/utils.py
@@ -43,7 +43,10 @@ import datetime
import operator
import urllib
import subprocess
-from urlparse import urlparse, parse_qs, urlunparse
+try:
+ from urlparse import urlparse, parse_qs, urlunparse
+except:
+ from urllib.parse import urlparse, parse_qs, urlunparse
from bs4 import BeautifulSoup
from collections import Counter
from contextlib import contextmanager
bgstack15