From: Mark Lodato Date: Tue, 6 Oct 2009 01:37:12 +0000 (-0400) Subject: freeze: fix cmath.pyx when run as __main__ X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=facd1907db14bc12e7824b27dfc23f87baa0cba2;p=cython.git freeze: fix cmath.pyx when run as __main__ --- diff --git a/Demos/freeze/cmath.pyx b/Demos/freeze/cmath.pyx index cc3f0521..d94bb1f2 100644 --- a/Demos/freeze/cmath.pyx +++ b/Demos/freeze/cmath.pyx @@ -20,5 +20,5 @@ if __name__ == "__main__": if len(sys.argv) != 2: sys.stderr.write("USAGE: %s n\nPrints n!.\n" % sys.argv[0]) sys.exit(1) - n = map(float, sys.argv[1:]) + n, = map(float, sys.argv[1:]) print factorial(n)