##// END OF EJS Templates
coding style: fix yield used as a function
Thomas Arendsen Hein -
r13077:6b8d2ee2 default
parent child Browse files
Show More
@@ -40,7 +40,7 b' def get_opts(opts):'
40 if longopt:
40 if longopt:
41 allopts.append("--%s" % longopt)
41 allopts.append("--%s" % longopt)
42 desc += default and _(" (default: %s)") % default or ""
42 desc += default and _(" (default: %s)") % default or ""
43 yield(", ".join(allopts), desc)
43 yield (", ".join(allopts), desc)
44
44
45 def get_cmd(cmd, cmdtable):
45 def get_cmd(cmd, cmdtable):
46 d = {}
46 d = {}
@@ -34,7 +34,7 b''
34 gratuitous whitespace in () or []
34 gratuitous whitespace in () or []
35 ./wrong.py:2:
35 ./wrong.py:2:
36 > del(arg2)
36 > del(arg2)
37 del isn't a function
37 Python keyword is not a function
38 ./wrong.py:3:
38 ./wrong.py:3:
39 > return ( 5+6, 9)
39 > return ( 5+6, 9)
40 missing whitespace in expression
40 missing whitespace in expression
General Comments 0
You need to be logged in to leave comments. Login now