Closed mcquin closed 7 years ago
This line prevents Python 3 use:
#! /usr/bin/env python2
Additionally, the Pythonic way of using urllib.parse in 2 and 3 environments is:
urllib.parse
from six.moves.urllib.parse import urlparse
From: Cheat Sheet: Writing Python 2-3 compatible code
Thanks @mcquin. Would you care to file a PR?
Sure. I can do that.
This line prevents Python 3 use:
Additionally, the Pythonic way of using
urllib.parse
in 2 and 3 environments is:From: Cheat Sheet: Writing Python 2-3 compatible code