Skip to content

Commit

Permalink
Fix error code for function name shadowing a builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 3, 2018
1 parent a0b7a56 commit 8b73000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Changelog
1.2.2 (unreleased)
------------------

- Nothing changed yet.
- Fix error message in function names shadowing a builtin.
Fixes /~https://github.com/gforcada/flake8-builtins/issues/22
[gforcada]


1.2.1 (2018-04-01)
Expand Down
2 changes: 1 addition & 1 deletion flake8_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def check_function_definition(self, statement):
yield (
statement.lineno,
statement.col_offset,
self.argument_msg.format(statement.name),
self.assign_msg.format(statement.name),
type(self),
)

Expand Down

0 comments on commit 8b73000

Please sign in to comment.