Fix sample scripts for Py3

This commit is contained in:
2014-03-29 00:19:15 +00:00
parent 25da143c18
commit 3ecbc6f6f1
2 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ def main():
else:
response = ts3.send_command('privilegekeyadd', keys={'tokentype': TOKEN_CHANNEL_GROUP, 'tokenid1': args['channelgroup'], 'tokenid2': args['channel']})
if response.is_successful:
print response.data[0]['token']
print(response.data[0]['token'])
sys.exit(0)
else:
sys.exit("Error creating key: %s" % response.response['msg'])