aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2017-09-14 13:52:40 +1000
committerZufu Liu <unknown>2017-09-14 13:52:40 +1000
commit5c19d126a44c343e5b15ae0dadda6ce0fc2b9b44 (patch)
tree72744423093f26e15ed86dbd5bf635889b04ef3e
parentdce400533381d1b5bec8a9bb0e809d1cbb8a66d9 (diff)
downloadscintilla-mirror-5c19d126a44c343e5b15ae0dadda6ce0fc2b9b44.tar.gz
Normalize whitespace.
-rw-r--r--scripts/Face.py2
-rw-r--r--scripts/FileGenerator.py6
-rw-r--r--scripts/GenerateCaseConvert.py2
-rwxr-xr-xscripts/HFacer.py2
-rw-r--r--scripts/HeaderCheck.py1
5 files changed, 6 insertions, 7 deletions
diff --git a/scripts/Face.py b/scripts/Face.py
index 0fbae30a8..e4001e47d 100644
--- a/scripts/Face.py
+++ b/scripts/Face.py
@@ -75,7 +75,7 @@ class Face:
"ReturnType": retType,
"Value": value,
"Param1Type": p1[0], "Param1Name": p1[1], "Param1Value": p1[2],
- "Param2Type": p2[0], "Param2Name": p2[1], "Param2Value": p2[2],
+ "Param2Type": p2[0], "Param2Name": p2[1], "Param2Value": p2[2],
"Category": currentCategory, "Comment": currentComment
}
if value in self.values:
diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py
index 3d488ef13..7022769fb 100644
--- a/scripts/FileGenerator.py
+++ b/scripts/FileGenerator.py
@@ -28,7 +28,7 @@ def UpdateFile(filename, updated):
# Same as before so don't write
return
os.unlink(filename)
- except IOError: # File is not there yet
+ except IOError: # File is not there yet
newOrChanged = "New"
with codecs.open(filename, "w", "utf-8") as outfile:
outfile.write(updated)
@@ -175,13 +175,13 @@ def ReadFileAsList(path):
"""
with codecs.open(path, "rU", "utf-8") as f:
return [l.rstrip('\n') for l in f]
-
+
def UpdateFileFromLines(path, lines, lineEndToUse):
"""Join the lines with the lineEndToUse then update file if the result is different.
"""
contents = lineEndToUse.join(lines) + lineEndToUse
UpdateFile(path, contents)
-
+
def FindSectionInList(lines, markers):
"""Find a section defined by an initial start marker, an optional secondary
marker and an end marker.
diff --git a/scripts/GenerateCaseConvert.py b/scripts/GenerateCaseConvert.py
index 548cc20e0..1e85a1c43 100644
--- a/scripts/GenerateCaseConvert.py
+++ b/scripts/GenerateCaseConvert.py
@@ -103,7 +103,7 @@ def groupRanges(symmetrics):
return rangeGroups, nonRanges
def escape(s):
- return "".join((chr(c) if chr(c) in string.ascii_letters else "\\x%x" % c) for c in s.encode('utf-8'))
+ return "".join((chr(c) if chr(c) in string.ascii_letters else "\\x%x" % c) for c in s.encode('utf-8'))
def updateCaseConvert():
symmetrics, complexes = conversionSets()
diff --git a/scripts/HFacer.py b/scripts/HFacer.py
index ed36df4ea..fe1642560 100755
--- a/scripts/HFacer.py
+++ b/scripts/HFacer.py
@@ -58,4 +58,4 @@ def RegenerateAll(root, showMaxID):
#~ print(v)
if __name__ == "__main__":
- RegenerateAll("../", True)
+ RegenerateAll("../", True)
diff --git a/scripts/HeaderCheck.py b/scripts/HeaderCheck.py
index e36ffa18e..b25dd105c 100644
--- a/scripts/HeaderCheck.py
+++ b/scripts/HeaderCheck.py
@@ -88,6 +88,5 @@ def CheckFiles(root):
i += 1
#~ return
#print("Master header list", " ".join(masterHeaderList))
-
CheckFiles("..")