python3: urlencode is in a different module
import urlencode from urllib.parse if neeeded for python3. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
8b6af63d83
commit
93f4a19778
@ -13,7 +13,10 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
try:
|
||||
from urllib import urlencode
|
||||
except ImportError: # python3
|
||||
from urllib.parse import urlencode
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
|
Loading…
Reference in New Issue
Block a user