# HG changeset patch # User Paul Boddie # Date 1444343102 -7200 # Node ID 0b1174b0f4446e947328b5d05d6144702f4f1905 # Parent 01d3243e1374045430cb063eb8e623fe2633ceb3 Initialise the extra function properly for module usage. diff -r 01d3243e1374 -r 0b1174b0f444 optimiser.py --- a/optimiser.py Fri Oct 09 00:01:29 2015 +0200 +++ b/optimiser.py Fri Oct 09 00:25:02 2015 +0200 @@ -35,6 +35,8 @@ # Basic colour operations. +def extra(x): return x + def within(v, lower, upper): return min(max(v, lower), upper) @@ -336,8 +338,6 @@ use_square = "-2" in options if use_square: extra = square - else: - extra = (lambda x: x) # General output options.