aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/Face.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-11-20 11:05:28 +1100
committerNeil <nyamatongwe@gmail.com>2015-11-20 11:05:28 +1100
commit6652c4eadad09cf6ea23b690c92d70b55a49d57f (patch)
tree955441c738e7e43de65414f956b16d678486eb1a /scripts/Face.py
parentad16ecb14a085d950b6a243b02267a0eca50f5c9 (diff)
downloadscintilla-mirror-6652c4eadad09cf6ea23b690c92d70b55a49d57f.tar.gz
Remove line end whitespace.
Diffstat (limited to 'scripts/Face.py')
-rw-r--r--scripts/Face.py34
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)