summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelte Fennema <github-tech@jeltef.nl>2016-09-28 01:55:53 +0200
committerJohn Vandenberg <jayvdb@gmail.com>2016-09-28 06:55:53 +0700
commit5d08a79af550b93f83c20ab3b1346439eb2cdd54 (patch)
tree5298b005b0e0e49d5a6b6a592b3194cfc12a0fdc
parent434bbb06d4dc38ab09eb9405be6fc1279286f69d (diff)
downloadpyflakes-5d08a79af550b93f83c20ab3b1346439eb2cdd54.tar.gz
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.
-rw-r--r--pyflakes/messages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyflakes/messages.py b/pyflakes/messages.py
index 58bb6a2..9e9406c 100644
--- a/pyflakes/messages.py
+++ b/pyflakes/messages.py
@@ -66,7 +66,7 @@ class ImportStarUsed(Message):
class ImportStarUsage(Message):
- message = "%s may be undefined, or defined from star imports: %s"
+ message = "%r may be undefined, or defined from star imports: %s"
def __init__(self, filename, loc, name, from_list):
Message.__init__(self, filename, loc)