summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-11-22 09:24:43 +0100
committerAnthon van der Neut <anthon@mnt.org>2016-11-22 09:24:43 +0100
commit77559065be3f3e8a76d76e733c26bb9a149f7b42 (patch)
tree37bb94598d77b0eb879bb958c7dad76f7f51fc8f /util.py
parenta72e8cf2f64855d29106f4f5b1687e09bcc9284e (diff)
downloadruamel.yaml-77559065be3f3e8a76d76e733c26bb9a149f7b42.tar.gz
memory usage optimisations0.13.1
Diffstat (limited to 'util.py')
-rw-r--r--util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.py b/util.py
index afc46fb..25c64e4 100644
--- a/util.py
+++ b/util.py
@@ -8,7 +8,6 @@ from __future__ import print_function
from __future__ import absolute_import
from .compat import text_type, binary_type
-from .main import round_trip_load
# originally as comment
@@ -24,6 +23,8 @@ def load_yaml_guess_indent(stream, **kw):
- if there are no block sequences, indent is taken from nested mappings, block sequence
indent is unset (None) in that case
"""
+ from .main import round_trip_load
+
# load a yaml file guess the indentation, if you use TABs ...
def leading_spaces(l):
idx = 0