[Patches] [ python-Patches-965175 ] improve markupbase.py error reporting

SourceForge.net noreply at sourceforge.net
Wed Jun 2 12:59:54 EDT 2004


Patches item #965175, was opened at 2004-06-02 12:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=965175&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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=965175&group_id=5470



More information about the Patches mailing list