1
0
forked from VimPlug/jedi

Make doctest work on Python 2.5

This commit is contained in:
Takafumi Arakaki
2013-02-26 10:58:24 +01:00
parent 6d2f7558fb
commit 9ba9e2c3a6
2 changed files with 13 additions and 9 deletions

View File

@@ -485,10 +485,12 @@ def _quick_complete(source):
"""
Convenience function to complete a source string at the end.
Example::
Example:
>>> _quick_complete('import json\\njson.l')
[<Completion: load>, <Completion: loads>]
>>> _quick_complete('''
... import datetime
... datetime.da''') #doctest: +ELLIPSIS
[<Completion: date>, <Completion: datetime>, ...]
:param source: The source code to be completed.
:type source: string