Use print() as function under contrib/

This fixes the remaining Python 3 syntax errors, so re-enable compileall
for contrib/ again.
This commit is contained in:
Marius Gedminas 2015-08-28 09:18:13 +03:00
commit 3f9879aedb
28 changed files with 105 additions and 96 deletions

View file

@ -41,7 +41,7 @@ def list_groups(api):
inventory['_meta'] = {'hostvars': hostvars}
inv_string = json.dumps(inventory, indent=1, sort_keys=True)
print inv_string
print(inv_string)
return None
@ -69,7 +69,7 @@ def print_host(host):
This function expects one string, this hostname to lookup variables for.
'''
print json.dumps({})
print(json.dumps({}))
return None