diff options
Diffstat (limited to 'lorrycontroller/gitano.py')
-rw-r--r-- | lorrycontroller/gitano.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lorrycontroller/gitano.py b/lorrycontroller/gitano.py index c0cca05..d0d1a0c 100644 --- a/lorrycontroller/gitano.py +++ b/lorrycontroller/gitano.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014 Codethink Limited +# Copyright (C) 2014-2019 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,8 +17,8 @@ import collections import logging import re -import urllib2 -import urlparse +import urllib.request, urllib.error, urllib.parse +import urllib.parse import cliapp import requests @@ -104,8 +104,8 @@ class GitanoCommand(object): return stdout def _http_command(self, gitano_args): - quoted_args = urllib2.quote(' '.join(gitano_args)) - url = urlparse.urlunsplit(( + quoted_args = urllib.parse.quote(' '.join(gitano_args)) + url = urllib.parse.urlunsplit(( self.protocol, self.trovehost, '/gitano-command.cgi', |