diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
commit | 38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch) | |
tree | 6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/code/servertoclient/groups.py | |
parent | 9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff) | |
download | tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2 tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip |
updated all leftover scripts to py3
Diffstat (limited to 'hercules/code/servertoclient/groups.py')
-rw-r--r-- | hercules/code/servertoclient/groups.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hercules/code/servertoclient/groups.py b/hercules/code/servertoclient/groups.py index 99424e5..6372c31 100644 --- a/hercules/code/servertoclient/groups.py +++ b/hercules/code/servertoclient/groups.py @@ -49,7 +49,7 @@ def readCommands(f): value = value[idx1 + 1: idx2 - idx1] parts = comaSplit.split(value) commands[name] = (parts[0].strip(), parts[1].strip()) - print "command: {0}, {1}".format(name, commands[name]) + print("command: {0}, {1}".format(name, commands[name])) return commands def readPermissions(f): @@ -63,7 +63,7 @@ def readPermissions(f): name = parts[0].strip() value = parts[1].strip() permissions[name] = value - print "permission: {0}, {1}".format(name, value) + print("permission: {0}, {1}".format(name, value)) return permissions def readInherit(data): @@ -98,26 +98,26 @@ def readGroup(groups, f): continue name = parts[0].strip() value = parts[1].strip() - print "line: {0}, {1}".format(name, value) + print("line: {0}, {1}".format(name, value)) if name == "id": fields["id"] = value elif name == "name": fields["name"] = value elif name == "commands": commands = readCommands(f) - print "Commands: {0}".format(commands) + print("Commands: {0}".format(commands)) elif name == "permissions": permissions = readPermissions(f) - print "Permissions: {0}".format(permissions) + print("Permissions: {0}".format(permissions)) elif name == "inherit": inherit = readInherit(value) - print "Inherit: {0}".format(inherit) + print("Inherit: {0}".format(inherit)) def getCommandType(data): if data[0] == "false" and data[1] == "false": return "false" elif data[0] == "false" and data[1] == "true": - return "other"; + return "other" elif data[0] == "true" and data[1] == "false": return "self" elif data[0] == "true" and data[1] == "true": |