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 /CI/testxml | |
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 'CI/testxml')
-rwxr-xr-x | CI/testxml/testxml.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CI/testxml/testxml.py b/CI/testxml/testxml.py index 4eb97b1..5d28c84 100755 --- a/CI/testxml/testxml.py +++ b/CI/testxml/testxml.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3 +#!/usr/bin/env python3 # -*- coding: utf8 -*- # # Copyright (C) 2010-2011 Evol Online @@ -260,7 +260,7 @@ def testDye(id, color, text, src, iserr): showMsg(id, "dye to small size: " + text, src, iserr) continue - c = col[0]; + c = col[0] if col[1] != ":": showMsg(id, "incorrect dye string: " + text, src, iserr) continue @@ -449,7 +449,7 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, checkAction, iser # except: # variant_offset = 0 -# root = dom.childNodes[0]; +# root = dom.childNodes[0] imagesets = dom.getElementsByTagName("imageset") if imagesets is None or len(imagesets) < 1: showMsgSprite(fileLoc, "incorrect number of imageset tags", iserr) @@ -892,7 +892,7 @@ def testSpriteAction(file, name, action, numframes, iserr): try: cont = int(lastNode.attributes["continue"].value) except: - cont = 0; + cont = 0 if cont == 0: try: delay = int(lastNode.attributes["delay"].value) @@ -1143,7 +1143,7 @@ def testItems(fileName, imgDir): if colors is None: testDye(id, floorcolor, "floor=" + floor0, fileName, True) else: - testDyeChannel(id, imagecolor, "floor=" + floor0, True); + testDyeChannel(id, imagecolor, "floor=" + floor0, True) if colors not in colorsList: print("error: " + fileName + ": colors value " + colors + " not found in itemcolors.xml") errors = errors + 1 @@ -1709,7 +1709,7 @@ def testMap(mapName, file, path): id1=readAttr(objx, "id", "?", "invalid object ID", False) name1=readAttr(objx, "name", "?", "invalid object name", False) type1=readAttr(objx, "type", "?", "invalid object type", False) - showMsgFile(file, "Broken object: id %s name %s (%s,%s,%s,%s) type %s" % (id1, name1, x, y, w, h, type1), True); + showMsgFile(file, "Broken object: id %s name %s (%s,%s,%s,%s) type %s" % (id1, name1, x, y, w, h, type1), True) except: id1=readAttr(objx, "id", "?", "invalid object ID", False) showMsgFile(file, "Broken object ID %s - x/y/h/w corrupted data detected" % id1, True) |