summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-10-27 18:22:43 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-10-27 18:22:43 +0200
commite5f7bc5866457e556c90f784769296410e924238 (patch)
tree644c4e1c0910af14db1d4fe1ef8d27ba60a65553 /constructor.py
parenta0d4b1a7f4998aa1d8015cf78bd043682bc9105b (diff)
downloadruamel.yaml-e5f7bc5866457e556c90f784769296410e924238.tar.gz
fixes issue #254 single question mark not dumped with quotes0.15.75
introduced re issue #62 for version 0.15.27 test in ruamel.yaml.data/special/single_indicator.yaml *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'constructor.py')
-rw-r--r--constructor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/constructor.py b/constructor.py
index 8600c9f..05fbb34 100644
--- a/constructor.py
+++ b/constructor.py
@@ -839,14 +839,14 @@ class Constructor(SafeConstructor):
__import__(module_name)
# object_name = '.'.join(object_name)
break
- except ImportError as exc:
+ except ImportError:
continue
else:
module_name = builtins_module
lobject_name = [name]
try:
__import__(module_name)
- except ImportError as exc:
+ except ImportError:
raise ConstructorError(
'while constructing a Python object',
mark,