fix printer reg py3.5, less aggressive bulk user on travis

This commit is contained in:
Jay Lee
2019-05-09 11:16:21 -04:00
parent 05d5fdde53
commit 4178b4a61e
2 changed files with 8 additions and 4 deletions

View File

@@ -3567,6 +3567,7 @@ def doPrinterRegister():
#Get the printer first to make sure our OAuth access token is fresh
callGAPI(cp.printers(), 'list')
_, result = cp._http.request(uri='https://www.google.com/cloudprint/register', method='POST', body=body, headers=headers)
result = result.decode(UTF8)
result = json.loads(result)
checkCloudPrintResult(result)
print('Created printer %s' % result['printers'][0]['id'])