1
0
forked from VimPlug/jedi

linter output changes - #408

This commit is contained in:
Dave Halter
2014-05-15 00:45:50 +02:00
parent b54d46374c
commit bcab821df9

View File

@@ -38,8 +38,12 @@ class Error(object):
def description(self):
return CODES[self.name][2]
def __unicode__(self):
return '%s:%s:%s: %s %s' % (self.path, self.line, self.column,
self.code, self.description())
def __str__(self):
return '%s: %s:%s' % (self.code, self.line, self.description())
return self.__unicode__()
def __eq__(self, other):
return (self.path == other.path and self.name == other.name