Permalink
Browse files

change encode('ascii') to utf8()

  • Loading branch information...
mankyd committed Jan 23, 2012
1 parent bcb30e5 commit df23c039d5cf020333cabaf2190495ea7ab0936b
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado/curl_httpclient.py
@@ -386,7 +386,7 @@ def ioctl(cmd):
if request.auth_username is not None:
userpwd = "%s:%s" % (request.auth_username, request.auth_password or '')
curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_BASIC)
- curl.setopt(pycurl.USERPWD, userpwd.encode('ascii'))
+ curl.setopt(pycurl.USERPWD, utf8(userpwd))
logging.debug("%s %s (username: %r)", request.method, request.url,
request.auth_username)
else:

0 comments on commit df23c03

Please sign in to comment.