diff options
Diffstat (limited to 'loader.py')
-rw-r--r-- | loader.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2,9 +2,7 @@ from __future__ import absolute_import -from typing import Any, Dict, List # NOQA - -from ruamel.yaml.compat import StreamTextType, VersionType # NOQA +import sys from ruamel.yaml.reader import Reader from ruamel.yaml.scanner import Scanner, RoundTripScanner @@ -14,6 +12,10 @@ from ruamel.yaml.constructor import BaseConstructor, SafeConstructor, Constructo RoundTripConstructor from ruamel.yaml.resolver import VersionedResolver +if sys.version_info >= (3, 5, 2): + from typing import Any, Dict, List # NOQA + from ruamel.yaml.compat import StreamTextType, VersionType # NOQA + __all__ = ['BaseLoader', 'SafeLoader', 'Loader', 'RoundTripLoader'] |