summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Deprecated/Options/Options.py4
-rw-r--r--test/Variables/Variables.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Deprecated/Options/Options.py b/test/Deprecated/Options/Options.py
index e415739..f196b79 100644
--- a/test/Deprecated/Options/Options.py
+++ b/test/Deprecated/Options/Options.py
@@ -334,8 +334,8 @@ opts.Add('UNSPECIFIED',
env = Environment(options=opts)
-def compare(a,b):
- return a < b
+def compare(a, b):
+ return (a > b) - (a < b)
Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env,sort=compare))
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py
index 17b33af..0fe3745 100644
--- a/test/Variables/Variables.py
+++ b/test/Variables/Variables.py
@@ -320,8 +320,8 @@ opts.Add('UNSPECIFIED',
env = Environment(variables=opts)
-def compare(a,b):
- return a < b
+def compare(a, b):
+ return (a > b) - (a < b)
Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env,sort=compare))