From 38fcd221d8fe03208abdafe0f01a6e54a601b71a Mon Sep 17 00:00:00 2001 From: jak1 Date: Sun, 19 Jun 2022 09:34:16 +0200 Subject: updated all leftover scripts to py3 --- CI/testxml/testxml.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CI/testxml/testxml.py') 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) -- cgit v1.2.3-60-g2f50