From 40c95ca1b92ced97ba85b1a1dd5b46754f6ab0c7 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 22 Mar 2017 15:53:24 +0100 Subject: fix issue 106, Text undefined in 3.5.1 Reported by Charles Bouchard-L?gar? --- nodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nodes.py') diff --git a/nodes.py b/nodes.py index b96524c..7f1cf88 100644 --- a/nodes.py +++ b/nodes.py @@ -2,7 +2,9 @@ from __future__ import print_function -from typing import Dict, Any, Text # NOQA +import sys +if sys.version_info >= (3, 5, 2): + from typing import Dict, Any, Text # NOQA class Node(object): -- cgit v1.2.1