Mercurial > p > roundup > code
diff roundup/cgi/TAL/XMLParser.py @ 5402:88dbacd11cd1
Python 3 preparation: update urllib / urllib2 / urlparse imports.
The existing roundup/anypy/urllib_.py is extended to cover more
imports and used in more places. Manual patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 23:48:30 +0000 |
| parents | 8c2402a78bb0 |
| children | 14a61eabcea8 |
line wrap: on
line diff
--- a/roundup/cgi/TAL/XMLParser.py Tue Jul 24 23:47:10 2018 +0000 +++ b/roundup/cgi/TAL/XMLParser.py Tue Jul 24 23:48:30 2018 +0000 @@ -13,6 +13,7 @@ ############################################################################## # Modifications for Roundup: # 1. commented out zLOG references +# 2. use roundup.anypy.urllib_ """ Generic expat-based XML parser base class. """ @@ -83,8 +84,8 @@ self.parser.Parse(s, 1) def parseURL(self, url): - import urllib - self.parseStream(urllib.urlopen(url)) + import roundup.anypy.urllib_ + self.parseStream(roundup.anypy.urllib_.urlopen(url)) def parseStream(self, stream): self.parser.ParseFile(stream)
