Commit fbcf41b6 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Updated code for Python 3.

parent 80e1f5ee
......@@ -18,7 +18,7 @@ class RESTConnection(object):
self.authority = authority
self.port = port
credentials = '{username}:{password}'.format(username=username, password=password)
credentials = base64.standard_b64encode(credentials)
credentials = base64.standard_b64encode(credentials.encode('UTF8')).decode('UTF8')
self.headers = {
'Authorization': 'Basic {credentials}'.format(credentials=credentials),
'Content-type': 'application/json',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment