From a6c036180344899471c715ad5798b78c116fdee5 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 20 Mar 2017 22:48:32 +0100 Subject: [PATCH] Handle raw_input vs input in Python 2 and 3 --- spacy/util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacy/util.py b/spacy/util.py index d1252e41d..f8fc76b05 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -20,6 +20,12 @@ except NameError: basestring = str +try: + raw_input +except NameError: # Python 3 + raw_input = input + + LANGUAGES = {} _data_path = pathlib.Path(__file__).parent / 'data'