summaryrefslogtreecommitdiffstats
path: root/contrib/create_service.py
diff options
context:
space:
mode:
authorVincent Post <cent@spline.de>2020-08-07 16:57:39 +0200
committerJonah BrĂ¼chert <jbb@kaidan.im>2023-05-22 00:28:11 +0200
commitc70cd40a012760e584677940d90d4d6613176238 (patch)
treea38308fd83e59449c0e64b5344be1e89c766dd4d /contrib/create_service.py
parentb8621b58e879732ecf81593dc34638533df2a212 (diff)
downloadweb-c70cd40a012760e584677940d90d4d6613176238.tar.gz
web-c70cd40a012760e584677940d90d4d6613176238.tar.bz2
web-c70cd40a012760e584677940d90d4d6613176238.zip
2to3 -w accounts contrib
Diffstat (limited to 'contrib/create_service.py')
-rwxr-xr-xcontrib/create_service.py6
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()