Update of /cvsroot/python/python/dist/src/Lib/xml/sax In directory slayer.i.sourceforge.net:/tmp/cvs-serv28715 Modified Files: expatreader.py Log Message: Use string functions instead of methods to allow sharing this module with PyXML Index: expatreader.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/expatreader.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** expatreader.py 2000/09/24 21:17:39 1.12 --- expatreader.py 2000/09/29 19:00:40 1.13 *************** *** 13,16 **** --- 13,18 ---- AttributesNSImpl = xmlreader.AttributesNSImpl + import string + # --- ExpatParser *************** *** 134,138 **** def start_element_ns(self, name, attrs): ! pair = name.split() if len(pair) == 1: pair = (None, name) --- 136,140 ---- def start_element_ns(self, name, attrs): ! pair = string.split(name) if len(pair) == 1: pair = (None, name) *************** *** 140,144 **** newattrs = {} for (aname, value) in attrs.items(): ! apair = aname.split() if len(apair) == 1: apair = (None, aname) --- 142,146 ---- newattrs = {} for (aname, value) in attrs.items(): ! apair = string.split(aname) if len(apair) == 1: apair = (None, aname) *************** *** 152,156 **** def end_element_ns(self, name): ! pair = name.split() if len(pair) == 1: pair = (None, name) --- 154,158 ---- def end_element_ns(self, name): ! pair = string.split(name) if len(pair) == 1: pair = (None, name)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4