Skip to content

Commit eb42c84

Browse files
committed
fix: Python 3 urlencode
The urllib.urlencode() function is now urllib.parse.urlencode()
1 parent f9e469e commit eb42c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/travis/box-upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def upload_file(local_file, remote_file):
4444
remote_file = remote_file[1:]
4545

4646
url = "http://DamCYhF8.mybluemix.net/upload?%s" % \
47-
urllib.urlencode({"name": remote_file})
47+
urllib.parse.urlencode({"name": remote_file})
4848

4949
r = requests.post(url,
5050
headers={"Content-Type": "application/gzip"},

0 commit comments

Comments
 (0)