mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Use *absolute* imports now that they are required. (Should this go into 2.5?)
This commit is contained in:
		
							parent
							
								
									c3e54b8480
								
							
						
					
					
						commit
						2def11a90d
					
				
					 3 changed files with 9 additions and 9 deletions
				
			
		|  | @ -19,11 +19,11 @@ | |||
| expatreader -- Driver that allows use of the Expat parser with SAX. | ||||
| """ | ||||
| 
 | ||||
| from xmlreader import InputSource | ||||
| from handler import ContentHandler, ErrorHandler | ||||
| from _exceptions import SAXException, SAXNotRecognizedException, \ | ||||
|                         SAXParseException, SAXNotSupportedException, \ | ||||
|                         SAXReaderNotAvailable | ||||
| from .xmlreader import InputSource | ||||
| from .handler import ContentHandler, ErrorHandler | ||||
| from ._exceptions import (SAXException, SAXNotRecognizedException, | ||||
|                           SAXParseException, SAXNotSupportedException, | ||||
|                           SAXReaderNotAvailable) | ||||
| 
 | ||||
| 
 | ||||
| def parse(source, handler, errorHandler=ErrorHandler()): | ||||
|  |  | |||
|  | @ -4,8 +4,8 @@ | |||
| """ | ||||
| 
 | ||||
| import os, urlparse, urllib, types | ||||
| import handler | ||||
| import xmlreader | ||||
| from . import handler | ||||
| from . import xmlreader | ||||
| 
 | ||||
| try: | ||||
|     _StringTypes = [types.StringType, types.UnicodeType] | ||||
|  |  | |||
|  | @ -1,9 +1,9 @@ | |||
| """An XML Reader is the SAX 2 name for an XML parser. XML Parsers | ||||
| should be based on this code. """ | ||||
| 
 | ||||
| import handler | ||||
| from . import handler | ||||
| 
 | ||||
| from _exceptions import SAXNotSupportedException, SAXNotRecognizedException | ||||
| from ._exceptions import SAXNotSupportedException, SAXNotRecognizedException | ||||
| 
 | ||||
| 
 | ||||
| # ===== XMLREADER ===== | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz