Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDarafei Praliaskouski <komzpa@gmail.com>2013-02-20 16:37:30 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:51:17 +0300
commit462f8e56b984e591006b56e5db6ba00ebe3c1a08 (patch)
tree8a6a08f0753ca3b75fbd98435116434cb454955f /tools
parent3b3567f8d7e68950bdf9073624b21b612fd6459a (diff)
moved convert_styles and autopep8'd it
Diffstat (limited to 'tools')
-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
-