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.

Author joseph.reagle
Recipients joseph.reagle
Date 2019-11-25.23:28:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574724534.5.0.309453376726.issue38910@roundup.psfhosted.org>
In-reply-to
Content
I've attached a simple XHTML file with which the 3.8 interpreter throws an error on the following code, but 3.7 does not. (You'll have to change the path in the code below.)

```
from io import StringIO, BytesIO
from lxml import etree
import os
import readline

HOME = os.path.expanduser("~")

ofile = HOME + '/data/2web/reagle.org/joseph/plan/plans/index.html'
plan_fd = open(ofile, 'r', encoding='utf-8', errors='replace')
plan_content = plan_fd.read()
plan_fd.close()
plan_tree = etree.parse(StringIO(plan_content),
                        etree.XMLParser(ns_clean=True, recover=True))
ul_found = plan_tree.xpath(
    '''//x:div[@id='Done']/x:ul''',
    namespaces={'x': 'http://www.w3.org/1999/xhtml'})
```
History
Date User Action Args
2019-11-25 23:28:54joseph.reaglesetrecipients: + joseph.reagle
2019-11-25 23:28:54joseph.reaglesetmessageid: <1574724534.5.0.309453376726.issue38910@roundup.psfhosted.org>
2019-11-25 23:28:54joseph.reaglelinkissue38910 messages
2019-11-25 23:28:54joseph.reaglecreate