summaryrefslogtreecommitdiff
path: root/pyparsing/exceptions.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2020-04-03 20:25:43 -0500
committerptmcg <ptmcg@austin.rr.com>2020-04-03 20:25:43 -0500
commit8d36d7709b40ad1a1fb309bdba8c785c744d9c08 (patch)
tree9e6fa12e764d2aa9ace69f8563b22b7f6dbdec61 /pyparsing/exceptions.py
parent61af31e9b4c29be7d88d5a7ff75252bc9ab55253 (diff)
downloadpyparsing-git-8d36d7709b40ad1a1fb309bdba8c785c744d9c08.tar.gz
Enhanced error messages and error locations when parsing fails on the Keyword or CaselessKeyword classes due to the presence of a preceding or trailing keyword character. See issue #201.
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r--pyparsing/exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py
index e5f665f..362b4c1 100644
--- a/pyparsing/exceptions.py
+++ b/pyparsing/exceptions.py
@@ -1,5 +1,6 @@
# exceptions.py
+import sys
from pyparsing.util import col, line, lineno