diff options
author | Vincent Post <cent@spline.de> | 2020-08-07 16:57:39 +0200 |
---|---|---|
committer | Vincent Post <cent@spline.de> | 2020-08-07 16:57:39 +0200 |
commit | f0a3dfd28d14461caeece9d7c171b6b319049c77 (patch) | |
tree | 3dbc76253a78607f1cdfe36d72c5b93e6a66baf8 /contrib/create_service.py | |
parent | 1db4f84c5adb2e33ea8d065cb6bcb0e7eeedc02f (diff) | |
download | web-f0a3dfd28d14461caeece9d7c171b6b319049c77.tar.gz web-f0a3dfd28d14461caeece9d7c171b6b319049c77.tar.bz2 web-f0a3dfd28d14461caeece9d7c171b6b319049c77.zip |
2to3 -w accounts contrib
Diffstat (limited to 'contrib/create_service.py')
-rwxr-xr-x | contrib/create_service.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/create_service.py b/contrib/create_service.py index 1da956a..54714df 100755 --- a/contrib/create_service.py +++ b/contrib/create_service.py @@ -21,7 +21,7 @@ from app import app if __name__ == "__main__": if len(sys.argv) < 2: - print("Usage: %s name" % sys.argv[0]) + print(("Usage: %s name" % sys.argv[0])) exit(-1) name = sys.argv[1] @@ -36,7 +36,7 @@ if __name__ == "__main__": try: data = service.connection.search_s(dn, ldap.SCOPE_SUBTREE) - print("'%s' already exists as service." % name) + print(("'%s' already exists as service." % name)) except ldap.NO_SUCH_OBJECT: attr = [ @@ -45,6 +45,6 @@ if __name__ == "__main__": ] service.connection.add_s(dn, attr) - print("Successfully created '%s' as a new service." % name) + print(("Successfully created '%s' as a new service." % name)) service._unbind() |