diff options
Diffstat (limited to 'hercules/code/server/tmw/consts.py')
-rw-r--r-- | hercules/code/server/tmw/consts.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hercules/code/server/tmw/consts.py b/hercules/code/server/tmw/consts.py index 5b8403e..971b23f 100644 --- a/hercules/code/server/tmw/consts.py +++ b/hercules/code/server/tmw/consts.py @@ -27,14 +27,14 @@ def readOneConst(r, line): line = r.next().strip() rows = fieldsSplit.split(line) if len(rows) != 2: - print "error" + print("error") return ("", "", 0) if rows[0] == "Value": val = rows[1] line = r.next().strip() rows = fieldsSplit.split(line) if len(rows) != 2: - print "error" + print("error") return ("", "", 0) rows[1] = rows[1].strip() if rows[0] == "Deprecated" and rows[1].find("true") == 0: @@ -43,7 +43,7 @@ def readOneConst(r, line): rows = fieldsSplit.split(line) if len(rows) != 2: return ("", "", 0) - key = rows[0]; + key = rows[0] val = rows[1] return (key, val, depr) @@ -77,7 +77,7 @@ def convertConsts(quests, npcIds): ] with open(dstFile, "w") as w: tpl = readFile("templates/constants.tpl") - w.write(tpl); + w.write(tpl) srcFile = "serverdata/db/constants.conf" with open(srcFile, "r") as r: for line in r: @@ -116,7 +116,7 @@ def convertConsts(quests, npcIds): rows[1] = str(quests[rows[0]]) + "\n" if rows[0] in fields: if fields[rows[0]] != rows[1][:-1]: - print "warning: different const values for {0} ({1}, {2})".format(rows[0], rows[1][:-1], fields[rows[0]]) + print("warning: different const values for {0} ({1}, {2})".format(rows[0], rows[1][:-1], fields[rows[0]])) else: writeConst(w, (rows[0], stripNewLine(rows[1]), 0)) w.write("// tmw npcs\n") |