Skip to content

Commit 5d08a79

Browse files
JelteFjayvdb
authored andcommitted
Use %r instead of %s in ImportStarMessage (#81)
This was inconsistent with the other error messages. This is useful as it allows easy detecting of the offending item for editor plugins by simply searching in the message for quotes.
1 parent 434bbb0 commit 5d08a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyflakes/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, filename, loc, modname):
6666

6767

6868
class ImportStarUsage(Message):
69-
message = "%s may be undefined, or defined from star imports: %s"
69+
message = "%r may be undefined, or defined from star imports: %s"
7070

7171
def __init__(self, filename, loc, name, from_list):
7272
Message.__init__(self, filename, loc)

0 commit comments

Comments
 (0)