This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: improve markupbase.py error reporting
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: jjlee, not4spam
Priority: normal Keywords: patch

Created on 2004-06-02 18:20 by not4spam, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg46115 - (view) Author: No Spam (not4spam) Date: 2004-06-02 18:20
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.
msg46116 - (view) Author: John J Lee (jjlee) Date: 2004-06-03 22:05
Logged In: YES 
user_id=261020

This is a duplicate of patch 965175 and should be closed.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40335
2004-06-02 18:20:17not4spamcreate