diff --git a/tools/python/convert_styles.py b/tools/python/stylesheet/convert_styles.py similarity index 94% rename from tools/python/convert_styles.py rename to tools/python/stylesheet/convert_styles.py index 226bebb0f7..88c159b8cb 100644 --- a/tools/python/convert_styles.py +++ b/tools/python/stylesheet/convert_styles.py @@ -14,7 +14,7 @@ i = 0 for l in lns: if not isCaption: i = l.find(" caption ") - if i <> -1: + if i != -1: isCaption = True captionLns = [] leadSpaces = l[0:i + 1] @@ -22,13 +22,13 @@ for l in lns: newlns.append(leadSpaces + " primary {") else: i = l.find(" path_text ") - if i <> -1: + if i != -1: isCaption = True captionLns = [] leadSpaces = l[0:i + 1] newlns.append(l) newlns.append(leadSpaces + " primary {") - else: + else: newlns.append(l) else: if l[i + 1] == "}": @@ -49,4 +49,3 @@ for l in lns: for i in newlns: print i -