We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 894d47f + dd1fce0 commit 961f24aCopy full SHA for 961f24a
1 file changed
bin/util.py
@@ -74,8 +74,9 @@ def pretty(item):
74
return location + ': ' + message
75
elif isinstance(location, tuple):
76
return '{0}:{1}: '.format(*location) + message
77
- else:
78
- assert False, 'Unknown item "{0}"'.format(item)
+
+ print('Unknown item "{0}"'.format(item), file=sys.stderr)
79
+ return NotImplemented
80
81
@staticmethod
82
def key(item):
@@ -86,8 +87,9 @@ def key(item):
86
87
return (location, -1, message)
88
89
return (location[0], location[1], message)
90
91
92
93
94
def report(self, stream=sys.stdout):
95
"""Report all messages in order."""
0 commit comments