forked from VimPlug/jedi
No __builtin__ prefix for BaseOutput.full_name
This commit is contained in:
@@ -16,7 +16,8 @@ class BaseOutput(object):
|
|||||||
'os2emxpath': 'os.path',
|
'os2emxpath': 'os.path',
|
||||||
'macpath': 'os.path',
|
'macpath': 'os.path',
|
||||||
'genericpath': 'os.path',
|
'genericpath': 'os.path',
|
||||||
'_io': 'io'
|
'_io': 'io',
|
||||||
|
'__builtin__': '',
|
||||||
}
|
}
|
||||||
|
|
||||||
_tuple_mapping = dict((tuple(k.split('.')), v) for (k, v) in {
|
_tuple_mapping = dict((tuple(k.split('.')), v) for (k, v) in {
|
||||||
@@ -101,7 +102,7 @@ class BaseOutput(object):
|
|||||||
if tuple(path[:len(key)]) == key:
|
if tuple(path[:len(key)]) == key:
|
||||||
path = [repl] + path[len(key):]
|
path = [repl] + path[len(key):]
|
||||||
|
|
||||||
return '.'.join(path)
|
return '.'.join(path if path[0] else path[1:])
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<%s %s>" % (type(self).__name__, self.description)
|
return "<%s %s>" % (type(self).__name__, self.description)
|
||||||
|
|||||||
Reference in New Issue
Block a user