##// END OF EJS Templates
docstring for _default_arguments_from_docstring
Piti Ongmongkolkul -
Show More
@@ -666,6 +666,10 b' class IPCompleter(Completer):'
666 return matches
666 return matches
667
667
668 def _default_arguments_from_docstring(self,doc):
668 def _default_arguments_from_docstring(self,doc):
669 """Parse first line of docstring of the
670 form 'min(iterable[, key=func])\n' to find
671 keyword argument names.
672 """
669 doc = doc.lstrip()
673 doc = doc.lstrip()
670 sio = StringIO.StringIO(doc)
674 sio = StringIO.StringIO(doc)
671 #care only the firstline
675 #care only the firstline
@@ -773,7 +777,7 b' class IPCompleter(Completer):'
773 for callableMatch in callableMatches:
777 for callableMatch in callableMatches:
774 try:
778 try:
775 namedArgs = self._default_arguments(eval(callableMatch,
779 namedArgs = self._default_arguments(eval(callableMatch,
776 self.namespace))
780 self.namespace))
777 except:
781 except:
778 continue
782 continue
779
783
General Comments 0
You need to be logged in to leave comments. Login now