diff options
author | Neil <nyamatongwe@gmail.com> | 2015-11-20 11:05:28 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-11-20 11:05:28 +1100 |
commit | 124307f221172d8c0638307f8ea227a842b45b1f (patch) | |
tree | 40ef82f0d3ee0f65de8839c5649c2938d0f92a07 /scripts/Face.py | |
parent | 28c1e186b953ae0c8fe7681c7d7ae8950efb266f (diff) | |
download | scintilla-mirror-124307f221172d8c0638307f8ea227a842b45b1f.tar.gz |
Remove line end whitespace.
Diffstat (limited to 'scripts/Face.py')
-rw-r--r-- | scripts/Face.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/scripts/Face.py b/scripts/Face.py index 17d161fd7..05864f17c 100644 --- a/scripts/Face.py +++ b/scripts/Face.py @@ -9,7 +9,7 @@ def sanitiseLine(line): line = line[:line.find("##")] line = line.strip() return line - + def decodeFunction(featureVal): retType, rest = featureVal.split(" ", 1) nameIdent, params = rest.split("(") @@ -17,13 +17,13 @@ def decodeFunction(featureVal): params, rest = params.split(")") param1, param2 = params.split(",") return retType, name, value, param1, param2 - + def decodeEvent(featureVal): retType, rest = featureVal.split(" ", 1) nameIdent, params = rest.split("(") name, value = nameIdent.split("=") return retType, name, value - + def decodeParam(p): param = p.strip() type = "" @@ -44,7 +44,7 @@ class Face: self.features = {} self.values = {} self.events = {} - + def ReadFromFile(self, name): currentCategory = "" currentComment = [] @@ -70,11 +70,11 @@ class Face: raise p1 = decodeParam(param1) p2 = decodeParam(param2) - self.features[name] = { - "FeatureType": featureType, + self.features[name] = { + "FeatureType": featureType, "ReturnType": retType, - "Value": value, - "Param1Type": p1[0], "Param1Name": p1[1], "Param1Value": p1[2], + "Value": value, + "Param1Type": p1[0], "Param1Name": p1[1], "Param1Value": p1[2], "Param2Type": p2[0], "Param2Name": p2[1], "Param2Value": p2[2], "Category": currentCategory, "Comment": currentComment } @@ -84,10 +84,10 @@ class Face: self.order.append(name) elif featureType == "evt": retType, name, value = decodeEvent(featureVal) - self.features[name] = { - "FeatureType": featureType, + self.features[name] = { + "FeatureType": featureType, "ReturnType": retType, - "Value": value, + "Value": value, "Category": currentCategory, "Comment": currentComment } if value in self.events: @@ -102,16 +102,16 @@ class Face: except ValueError: print("Failure %s" % featureVal) raise Exception() - self.features[name] = { - "FeatureType": featureType, - "Category": currentCategory, + self.features[name] = { + "FeatureType": featureType, + "Category": currentCategory, "Value": value } self.order.append(name) elif featureType == "enu" or featureType == "lex": name, value = featureVal.split("=", 1) - self.features[name] = { - "FeatureType": featureType, - "Category": currentCategory, + self.features[name] = { + "FeatureType": featureType, + "Category": currentCategory, "Value": value } self.order.append(name) |