diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-03-22 15:53:24 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-03-22 15:53:24 +0100 |
commit | 40c95ca1b92ced97ba85b1a1dd5b46754f6ab0c7 (patch) | |
tree | dc52888ff411545a6546fc1638ecd242aeb25247 /resolver.py | |
parent | c15232bf77e29c1e739d8632cd3d2a48909c4f05 (diff) | |
download | ruamel.yaml-40c95ca1b92ced97ba85b1a1dd5b46754f6ab0c7.tar.gz |
fix issue 106, Text undefined in 3.5.10.14.1
Reported by Charles Bouchard-L?gar?
Diffstat (limited to 'resolver.py')
-rw-r--r-- | resolver.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resolver.py b/resolver.py index eab1b41..6245216 100644 --- a/resolver.py +++ b/resolver.py @@ -4,11 +4,13 @@ from __future__ import absolute_import import re -from typing import Any, Dict, List, Union # NOQA +import sys +if sys.version_info >= (3, 5, 2): + from typing import Any, Dict, List, Union # NOQA + from ruamel.yaml.compat import string_types, VersionType # NOQA from ruamel.yaml.error import * # NOQA from ruamel.yaml.nodes import * # NOQA -from ruamel.yaml.compat import string_types, VersionType # NOQA __all__ = ['BaseResolver', 'Resolver', 'VersionedResolver'] |