Show More
@@ -937,8 +937,8 b' class IPCompleter(Completer):' | |||||
937 | def get_keys(obj): |
|
937 | def get_keys(obj): | |
938 | # Objects can define their own completions by defining an |
|
938 | # Objects can define their own completions by defining an | |
939 | # _ipy_key_completions_() method. |
|
939 | # _ipy_key_completions_() method. | |
940 | if _safe_really_hasattr(obj, '_ipy_key_completions_'): |
|
940 | if _safe_really_hasattr(obj, '_ipython_key_completions_'): | |
941 | return obj._ipy_key_completions_() |
|
941 | return obj._ipython_key_completions_() | |
942 |
|
942 | |||
943 | # Special case some common in-memory dict-like types |
|
943 | # Special case some common in-memory dict-like types | |
944 | if isinstance(obj, dict) or\ |
|
944 | if isinstance(obj, dict) or\ |
@@ -765,7 +765,7 b' class KeyCompletable(object):' | |||||
765 | def __init__(self, things=()): |
|
765 | def __init__(self, things=()): | |
766 | self.things = things |
|
766 | self.things = things | |
767 |
|
767 | |||
768 | def _ipy_key_completions_(self): |
|
768 | def _ipython_key_completions_(self): | |
769 | return list(self.things) |
|
769 | return list(self.things) | |
770 |
|
770 | |||
771 | def test_object_key_completion(): |
|
771 | def test_object_key_completion(): |
General Comments 0
You need to be logged in to leave comments.
Login now