py3: update all the things
Change-Id: I5e11b46b7c2f7f8760d6c0e713ca99c1e88b7cd3
diff --git a/tools/roomservice.py b/tools/roomservice.py
index 01a7154..ee8e5d8 100755
--- a/tools/roomservice.py
+++ b/tools/roomservice.py
@@ -38,7 +38,7 @@
from xml.etree import ElementTree
-product = sys.argv[1];
+product = sys.argv[1]
if len(sys.argv) > 2:
depsonly = sys.argv[2]
@@ -59,7 +59,8 @@
authtuple = netrc.netrc().authenticators("api.github.com")
if authtuple:
- githubauth = base64.encodestring('%s:%s' % (authtuple[0], authtuple[2])).replace('\n', '')
+ auth_string = ('%s:%s' % (authtuple[0], authtuple[2])).encode()
+ githubauth = base64.encodestring(auth_string).decode().replace('\n', '')
else:
githubauth = None
except: