diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-02-20 16:37:30 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:51:17 +0300 |
commit | 462f8e56b984e591006b56e5db6ba00ebe3c1a08 (patch) | |
tree | 8a6a08f0753ca3b75fbd98435116434cb454955f | |
parent | 3b3567f8d7e68950bdf9073624b21b612fd6459a (diff) |
moved convert_styles and autopep8'd it
-rw-r--r-- | tools/python/stylesheet/convert_styles.py (renamed from tools/python/convert_styles.py) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/python/convert_styles.py b/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 - |