mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +08:00
Merge dev and the away branch.
This commit is contained in:
+4
-1
@@ -6,6 +6,7 @@ env:
|
|||||||
- TOXENV=py32
|
- TOXENV=py32
|
||||||
- TOXENV=py33
|
- TOXENV=py33
|
||||||
- TOXENV=py34
|
- TOXENV=py34
|
||||||
|
- TOXENV=py35
|
||||||
- TOXENV=pypy
|
- TOXENV=pypy
|
||||||
- TOXENV=cov
|
- TOXENV=cov
|
||||||
- TOXENV=sith
|
- TOXENV=sith
|
||||||
@@ -14,8 +15,9 @@ matrix:
|
|||||||
- env: TOXENV=cov
|
- env: TOXENV=cov
|
||||||
- env: TOXENV=sith
|
- env: TOXENV=sith
|
||||||
- env: TOXENV=pypy
|
- env: TOXENV=pypy
|
||||||
|
python: 3.5
|
||||||
install:
|
install:
|
||||||
- pip install --quiet --use-mirrors tox
|
- pip install --quiet tox 'virtualenv<14.0.0' 'pip<8.0.0'
|
||||||
script:
|
script:
|
||||||
- tox
|
- tox
|
||||||
after_script:
|
after_script:
|
||||||
@@ -23,3 +25,4 @@ after_script:
|
|||||||
pip install --quiet --use-mirrors coveralls;
|
pip install --quiet --use-mirrors coveralls;
|
||||||
coveralls;
|
coveralls;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -37,5 +37,6 @@ Kevin Kelley (@kelleyk) <kelleyk@kelleyk.net>
|
|||||||
Sid Shanker (@squidarth) <sid.p.shanker@gmail.com>
|
Sid Shanker (@squidarth) <sid.p.shanker@gmail.com>
|
||||||
Reinoud Elhorst (@reinhrst)
|
Reinoud Elhorst (@reinhrst)
|
||||||
Guido van Rossum (@gvanrossum) <guido@python.org>
|
Guido van Rossum (@gvanrossum) <guido@python.org>
|
||||||
|
Dmytro Sadovnychyi (@sadovnychyi) <jedi@dmit.ro>
|
||||||
|
|
||||||
Note: (@user) means a github user name.
|
Note: (@user) means a github user name.
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ The API basically only provides one class. You can create a :class:`Script` and
|
|||||||
use its methods.
|
use its methods.
|
||||||
|
|
||||||
Additionally you can add a debug function with :func:`set_debug_function`.
|
Additionally you can add a debug function with :func:`set_debug_function`.
|
||||||
|
Alternatively, if you don't need a custom function and are happy with printing
|
||||||
|
debug messages to stdout, simply call :func:`set_debug_function` without
|
||||||
|
arguments.
|
||||||
|
|
||||||
.. warning:: Please, note that Jedi is **not thread safe**.
|
.. warning:: Please, note that Jedi is **not thread safe**.
|
||||||
"""
|
"""
|
||||||
@@ -529,6 +532,8 @@ def set_debug_function(func_cb=debug.print_to_stdout, warnings=True,
|
|||||||
"""
|
"""
|
||||||
Define a callback debug function to get all the debug messages.
|
Define a callback debug function to get all the debug messages.
|
||||||
|
|
||||||
|
If you don't specify any arguments, debug messages will be printed to stdout.
|
||||||
|
|
||||||
:param func_cb: The callback function for debug messages, with n params.
|
:param func_cb: The callback function for debug messages, with n params.
|
||||||
"""
|
"""
|
||||||
debug.debug_function = func_cb
|
debug.debug_function = func_cb
|
||||||
|
|||||||
+1
-1
@@ -135,7 +135,7 @@ def source_to_unicode(source, encoding=None):
|
|||||||
return possible_encoding.group(1)
|
return possible_encoding.group(1)
|
||||||
else:
|
else:
|
||||||
# the default if nothing else has been set -> PEP 263
|
# the default if nothing else has been set -> PEP 263
|
||||||
return encoding if encoding is not None else 'iso-8859-1'
|
return encoding if encoding is not None else 'utf-8'
|
||||||
|
|
||||||
if isinstance(source, unicode):
|
if isinstance(source, unicode):
|
||||||
# only cast str/bytes
|
# only cast str/bytes
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py26, py27, py32, py33, py34
|
envlist = py26, py27, py32, py33, py34, py35
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
pytest>=2.3.5
|
pytest>=2.3.5
|
||||||
@@ -18,6 +18,11 @@ commands =
|
|||||||
deps =
|
deps =
|
||||||
unittest2
|
unittest2
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
|
[testenv:py32]
|
||||||
|
deps =
|
||||||
|
pip<8.0.0
|
||||||
|
virtualenv<14.0.0
|
||||||
|
{[testenv]deps}
|
||||||
[testenv:cov]
|
[testenv:cov]
|
||||||
deps =
|
deps =
|
||||||
coverage
|
coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user