freeze: fix cmath.pyx when run as __main__
authorMark Lodato <lodatom@gmail.com>
Tue, 6 Oct 2009 01:37:12 +0000 (21:37 -0400)
committerMark Lodato <lodatom@gmail.com>
Tue, 6 Oct 2009 01:37:12 +0000 (21:37 -0400)
Demos/freeze/cmath.pyx

index cc3f0521ed9a64494798c7f13bfbda00c4055998..d94bb1f2e895264feefe7ae49866d99033c1e780 100644 (file)
@@ -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)