1
0
forked from VimPlug/jedi

Move the recursion limit settings to the recursion module.

This commit is contained in:
Dave Halter
2017-09-17 14:08:39 +02:00
parent f2d24f0259
commit f4ba71f6a3
4 changed files with 58 additions and 96 deletions

View File

@@ -78,19 +78,6 @@ class PushBackIterator(object):
return self.current
@contextlib.contextmanager
def scale_speed_settings(factor):
a = settings.max_executions
b = settings.max_until_execution_unique
settings.max_executions *= factor
settings.max_until_execution_unique *= factor
try:
yield
finally:
settings.max_executions = a
settings.max_until_execution_unique = b
def indent_block(text, indention=' '):
"""This function indents a text block with a default of four spaces."""
temp = ''