[Patches] [ python-Patches-965192 ] improve markupbase.py error
reporting
SourceForge.net
noreply at sourceforge.net
Thu Jun 3 18:05:49 EDT 2004
Patches item #965192, was opened at 2004-06-02 19:20
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=965192&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: No Spam (not4spam)
Assigned to: Nobody/Anonymous (nobody)
Summary: improve markupbase.py error reporting
Initial Comment:
This is just a minor nit, but in "_scan_name" in "markupbase.py"
if it cannot find a name token, it just reports "expected name token"
without any identifying information. This can be easily improved
by changing the line (379) from,
self.error("expected name token")
to,
self.error("expected name token at '%s'" % rawdata[declstartpos:declstartpos+20])
which will show 20 characters of text where the error occured.
Perhaps this can be changed in version 2.4? Thanks.
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2004-06-03 23:05
Message:
Logged In: YES
user_id=261020
This is a duplicate of patch 965175 and should be closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=965192&group_id=5470
More information about the Patches
mailing list