coding style: fix yield used as a function
authorThomas Arendsen Hein <thomas@jtah.de>
Fri, 03 Dec 2010 12:22:56 +0100
changeset 13077 6b8d2ee24ce2
parent 13076 a861c7155f09
child 13078 69405131c968
coding style: fix yield used as a function
doc/gendoc.py
tests/test-check-code.t
--- a/doc/gendoc.py	Fri Dec 03 12:04:31 2010 +0100
+++ b/doc/gendoc.py	Fri Dec 03 12:22:56 2010 +0100
@@ -40,7 +40,7 @@
         if longopt:
             allopts.append("--%s" % longopt)
         desc += default and _(" (default: %s)") % default or ""
-        yield(", ".join(allopts), desc)
+        yield (", ".join(allopts), desc)
 
 def get_cmd(cmd, cmdtable):
     d = {}
--- a/tests/test-check-code.t	Fri Dec 03 12:04:31 2010 +0100
+++ b/tests/test-check-code.t	Fri Dec 03 12:22:56 2010 +0100
@@ -34,7 +34,7 @@
    gratuitous whitespace in () or []
   ./wrong.py:2:
    >     del(arg2)
-   del isn't a function
+   Python keyword is not a function
   ./wrong.py:3:
    >     return ( 5+6, 9)
    missing whitespace in expression