mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Make reindent.py happy (lots of trailing whitespace removed).
This commit is contained in:
parent
098b55ab44
commit
16f6329e61
9 changed files with 103 additions and 104 deletions
|
|
@ -37,7 +37,7 @@ def parseString(string, handler, errorHandler=ErrorHandler()):
|
|||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
|
||||
|
||||
if errorHandler is None:
|
||||
errorHandler = ErrorHandler()
|
||||
parser = make_parser()
|
||||
|
|
@ -61,8 +61,8 @@ del os
|
|||
_key = "python.xml.sax.parser"
|
||||
if sys.platform[:4] == "java" and sys.registry.containsKey(_key):
|
||||
default_parser_list = string.split(sys.registry.getProperty(_key), ",")
|
||||
|
||||
|
||||
|
||||
|
||||
def make_parser(parser_list = []):
|
||||
"""Creates and returns a SAX parser.
|
||||
|
||||
|
|
@ -85,8 +85,8 @@ def make_parser(parser_list = []):
|
|||
# so try the next one
|
||||
pass
|
||||
|
||||
raise SAXReaderNotAvailable("No parsers found", None)
|
||||
|
||||
raise SAXReaderNotAvailable("No parsers found", None)
|
||||
|
||||
# --- Internal utility methods used by make_parser
|
||||
|
||||
if sys.platform[ : 4] == "java":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue