Description: Adding fix for raise StringTooLong
 Patch from upstream VCS aaee5030d20bd832373485e2c78084f4d92227f7
 to fix test errors.
Origin: upstream, https://github.com/danthedeckie/simpleeval/commit/aaee5030d20bd832373485e2c78084f4d92227f7
Bug: https://github.com/danthedeckie/simpleeval/issues/5
Forwarded: not-needed

--- simpleeval.orig/simpleeval.py	2015-04-26 14:23:51.000000000 +0200
+++ simpleeval/simpleeval.py	2015-04-26 14:23:51.000000000 +0200
@@ -218,9 +218,9 @@
             return node.n
         elif isinstance(node, ast.Str): # <string>
             if len(node.s) > MAX_STRING_LENGTH:
-                raise StringTooLong("{0} is too long!"
-                                    " ({1}, when {2} is max)".format(
-                                    node.id, len(node.s), MAX_STRING_LENGTH))
+                raise StringTooLong("String Literal in statement is too long!"
+                                    " ({0}, when {1} is max)".format(
+                                    len(node.s), MAX_STRING_LENGTH))
             return node.s
 
         # python 3 compatibility:
@@ -263,7 +263,10 @@
                 elif callable(self.names):
                     return self.names(node)
                 else:
-                    raise KeyError('undefined name')
+                    raise InvalidExpression('Trying to use name (variable) "{0}"'
+                                            ' when no "names" defined for'
+                                            ' evaluator'.format(node.id))
+
             except KeyError:
                 raise NameNotDefined(node.id, self.expr)
 
