changeset 13077:6b8d2ee24ce2

coding style: fix yield used as a function
author Thomas Arendsen Hein <thomas@jtah.de>
date Fri, 03 Dec 2010 12:22:56 +0100
parents a861c7155f09
children 69405131c968
files doc/gendoc.py tests/test-check-code.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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