1
0
forked from VimPlug/jedi

None issue fix for static analysis

This commit is contained in:
Dave Halter
2014-05-13 01:21:32 +02:00
parent 00e43d4585
commit a2b483b4f5
5 changed files with 14 additions and 8 deletions

View File

@@ -7,7 +7,6 @@ from jedi.parser import representation as pr
from jedi.evaluate.compiled import CompiledObject
CODES = {
'attribute-error': (1, AttributeError, 'Potential AttributeError.'),
'import-error': (2, ImportError, 'Potential ImportError.'),
@@ -36,7 +35,7 @@ class Error(object):
return first + str(CODES[self.name][0])
def description(self):
return CODES[self.name][1]
return CODES[self.name][2]
def __str__(self):
return '%s: %s:%s' % (self.code, self.line, self.description())