diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-04-19 15:13:02 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-04-19 15:13:02 +0200 |
commit | 870b961a3a6d72d8c7569cbc637c6cc553c1d907 (patch) | |
tree | 4185c36062b9b8c504075658b8dd5303285f3a20 /composer.py | |
parent | e3663d2b81399576b5a4edca9820971bf801e66a (diff) | |
download | ruamel.yaml-870b961a3a6d72d8c7569cbc637c6cc553c1d907.tar.gz |
fix issue #116: Text not available in 3.5.0/3.5.10.14.8
If this solves the issue for you, please close it.
Diffstat (limited to 'composer.py')
-rw-r--r-- | composer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/composer.py b/composer.py index 1cfd3af..9eb5229 100644 --- a/composer.py +++ b/composer.py @@ -5,8 +5,6 @@ from __future__ import print_function import warnings -from typing import Any, Dict, Optional, List # NOQA - from ruamel.yaml.error import MarkedYAMLError, ReusedAnchorWarning from ruamel.yaml.compat import utf8 @@ -18,6 +16,10 @@ from ruamel.yaml.nodes import ( MappingNode, ScalarNode, SequenceNode, ) +import sys +if sys.version_info >= (3, 5, 2): + from typing import Any, Dict, Optional, List # NOQA + __all__ = ['Composer', 'ComposerError'] |