Skip to content

Commit 14e73f1

Browse files
authored
Fix docker-archive#7 adding support for Python 3
I have this simple update to get my script working with Python 3. Can anyone clarify this?
1 parent 56c8064 commit 14e73f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockercloud/api/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def new_session():
3434

3535
def send_request(method, path, inject_header=True, **kwargs):
3636
json = None
37-
url = urljoin(dockercloud.rest_host.rstrip("/"), path.strip("/").encode("ascii", "ignore"))
37+
url = urljoin(dockercloud.rest_host.rstrip("/"), path.strip("/"))
3838
if not url.endswith("/"):
3939
url = "%s/" % url
4040
user_agent = 'python-dockercloud/%s' % dockercloud.__version__

0 commit comments

Comments
 (0)