Permalink
Browse files

extension for #61

  • Loading branch information...
1 parent b12117e commit 381b999eda46996780f05513fb6313ae80eba4dc @davidhalter committed Nov 18, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 jedi/api_classes.py
View
@@ -19,6 +19,10 @@ class BaseOutput(object):
'_io': 'io'
}
+ _tuple_mapping = {
+ ('argparse', '_ActionsContainer'): 'argparse._ActionsContainer'
+ }
+
def __init__(self, definition, start_pos):
self.start_pos = start_pos
self.definition = definition
@@ -91,6 +95,10 @@ def full_name(self):
path[0] = self._mapping[path[0]]
except KeyError:
pass
+ for key, repl in self._tuple_mapping.items():
+ if tuple(path[:len(key)]) == key:
+ path = [repl] + path[len(key)]
+
return '.'.join(path)
def __repr__(self):

0 comments on commit 381b999

Please sign in to comment.