From 1e912d29164149acede33f1f29878374c87d4aba Mon Sep 17 00:00:00 2001 From: cpopa Date: Mon, 7 Apr 2014 11:34:15 +0300 Subject: Remove the reference to ast.literal_eval from the error message. --- checkers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkers/base.py b/checkers/base.py index bc0df37..4228802 100644 --- a/checkers/base.py +++ b/checkers/base.py @@ -450,12 +450,12 @@ functions, methods 'exec-used', 'Used when you use the "exec" statement (function for Python 3), to discourage its \ usage. That doesn\'t mean you can not use it !'), - 'W0123': ('Use of eval. Consider using ast.literal_eval', + 'W0123': ('Use of eval', 'eval-used', 'Used when you use the "eval" function, to discourage its ' 'usage. Consider using `ast.literal_eval` for safely evaluating ' 'strings containing Python expressions ' - 'from untrusted sources. '), + 'from untrusted sources. '), 'W0141': ('Used builtin function %r', 'bad-builtin', 'Used when a black listed builtin function is used (see the ' -- cgit v1.2.1