Skip to content

Commit

Permalink
Removed a colon from the descriptive message in B008. (#96)
Browse files Browse the repository at this point in the history
* Removed a colon from the descriptive message in B008.

* Updated to latest black; formatted tests/b901.py
  • Loading branch information
minusworld authored and cooperlees committed Nov 7, 2019
1 parent 4f081af commit 3fc0a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def visit(self, node):
"If this is intended, start the name with an underscore."
)
B008 = Error(
message="B008: Do not perform function calls in argument defaults. The call is "
message="B008 Do not perform function calls in argument defaults. The call is "
"performed only once at function definition time. All calls to your "
"function will reuse the result of that definition-time function call. If "
"this is intended, assign the function call to a module-level variable and "
Expand Down
2 changes: 1 addition & 1 deletion tests/b901.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def not_broken6():


def not_broken7():
x = (yield from [])
x = yield from []
return x


Expand Down

0 comments on commit 3fc0a52

Please sign in to comment.