summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-04-22 09:47:24 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-04-22 09:47:24 +0200
commitfacf4079b482304199f44a6f04865d8aa1f1f819 (patch)
tree32b2402d96d935998d1163ccee64c8fc8c8a70fa /scanner.py
parent4f8475e4592ed1430815b1c2d4e40c95a536d156 (diff)
downloadruamel.yaml-facf4079b482304199f44a6f04865d8aa1f1f819.tar.gz
typing no longer needed, fix issue #117 (2.6 support)0.14.9
Diffstat (limited to 'scanner.py')
-rw-r--r--scanner.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scanner.py b/scanner.py
index 3a95d4e..2f083f5 100644
--- a/scanner.py
+++ b/scanner.py
@@ -30,13 +30,11 @@ from __future__ import print_function, absolute_import, division, unicode_litera
# Read comments in the Scanner code for more details.
#
-import sys
-
from ruamel.yaml.error import MarkedYAMLError
from ruamel.yaml.tokens import * # NOQA
from ruamel.yaml.compat import utf8, unichr, PY3, check_anchorname_char
-if sys.version_info >= (3, 5, 2):
+if False: # MYPY
from typing import Any, Dict, Optional, List, Union, Text # NOQA
__all__ = ['Scanner', 'RoundTripScanner', 'ScannerError']