From 3b5825ebe37ea539017b277fb0d5719a01a2a402 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 31 Jul 2003 06:45:03 +0000 Subject: [PATCH] Removed use of eval from the tokenizer. --- src/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 7765bc62b..7b86a53ba 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -184,8 +184,8 @@ class Tokenizer: def handleToken(self, token): while token and token[0] == '"' and token[-1] == token[0]: if len(token) > 1: - # token = token[1:-1].decode('string-escape') # 2.3+ - token = eval('"%s"' % token[1:-1], self._env, self._env) + token = token[1:-1].decode('string_escape') # 2.3+ + # token = eval('"%s"' % token[1:-1], self._env, self._env) else: break return token