Changeset: 7889b1c65a2f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7889b1c65a2f
Modified Files:
testing/Mfilter.py
Branch: Jun2020
Log Message:
I like using Boolean values for Boolean usages.
diffs (35 lines):
diff --git a/testing/Mfilter.py b/testing/Mfilter.py
--- a/testing/Mfilter.py
+++ b/testing/Mfilter.py
@@ -157,7 +157,8 @@ def mFilter (FILE, IGNORE) :
ftmp = []
- ig = n = 0
+ n = 0
+ ig = False
il = iw = ic = el = ew = ec = al = aw = ac = 0
for iline in openutf8(FILE, 'rU'):
iline = iline.replace('\033[?1034h','')
@@ -173,7 +174,7 @@ def mFilter (FILE, IGNORE) :
iline = re.sub(r'(\d+(?:\.\d*)?e[-+]?)0*(\d+)', r'\1\2', iline)
oline = xline = ""
if iline == "#~BeginVariableOutput~#\n" or iline ==
"#~BeginProfilingOutput~#\n" or iline == "[ \"~BeginVariableOutput~\"\t]\n" or
iline == "[ \"~BeginProfilingOutput~\"\t]\n":
- ig = 1
+ ig = True
n = 0
if ig and ( len(iline) == 0 or iline[0] != "!" or iline[:9] !=
"ERROR = !" ):
# ignore differences in "VariableOutput" or "ProfilingOutput"
@@ -226,10 +227,10 @@ def mFilter (FILE, IGNORE) :
else:
oline = iline
if iline == "#~EndVariableOutput~#\n" or iline == "[
\"~EndVariableOutput~\"\t]\n":
- ig = 0
+ ig = False
xline = "~ " + str(n) + " ~\n"
if iline == "#~EndProfilingOutput~#\n" or iline == "[
\"~EndProfilingOutput~\"\t]\n":
- ig = 0
+ ig = False
for ln in oline, xline:
if len(ln):
w = len(ln.split())
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list