diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-10-01 08:00:43 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-10-01 08:00:43 +0200 |
commit | 639dffb7d27cc49684a6cb2a8ad57b936b1e01dc (patch) | |
tree | 1a11bc1ea366bb9eb2df2af82e3e394e4bfcbb04 /pyaggr3g470r/utils.py | |
parent | Release 5.6.6. (diff) | |
download | newspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.tar.gz newspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.tar.bz2 newspipe-639dffb7d27cc49684a6cb2a8ad57b936b1e01dc.zip |
Python 3 support
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-x | pyaggr3g470r/utils.py | 5 |
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 |