diff options
| author | Tim Peters <tim.peters@gmail.com> | 2003-04-24 16:02:54 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2003-04-24 16:02:54 +0000 |
| commit | 0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a (patch) | |
| tree | 6d84cc9f2da9f24dd76871e75a80e618fd519a27 /Lib/xml | |
| parent | 0822ff7ccab0465cf4377176089dfdbabbd0a35b (diff) | |
| download | cpython-git-0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a.tar.gz | |
Whitespace normalization.
Diffstat (limited to 'Lib/xml')
| -rw-r--r-- | Lib/xml/dom/domreg.py | 4 | ||||
| -rw-r--r-- | Lib/xml/dom/pulldom.py | 2 | ||||
| -rw-r--r-- | Lib/xml/sax/handler.py | 2 | ||||
| -rw-r--r-- | Lib/xml/sax/saxutils.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Lib/xml/dom/domreg.py b/Lib/xml/dom/domreg.py index 0e6e615d35..117ca49820 100644 --- a/Lib/xml/dom/domreg.py +++ b/Lib/xml/dom/domreg.py @@ -26,7 +26,7 @@ def registerDOMImplementation(name, factory): interface. The factory function can either return the same object, or a new one (e.g. if that implementation supports some customization).""" - + registered[name] = factory def _good_enough(dom, features): @@ -48,7 +48,7 @@ def getDOMImplementation(name = None, features = ()): find one with the required feature set. If no implementation can be found, raise an ImportError. The features list must be a sequence of (feature, version) pairs which are passed to hasFeature.""" - + import os creator = None mod = well_known_implementations.get(name) diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py index b2e1a46abc..18f49b5019 100644 --- a/Lib/xml/dom/pulldom.py +++ b/Lib/xml/dom/pulldom.py @@ -236,7 +236,7 @@ class DOMEventStream: def __iter__(self): return self - + def expandNode(self, node): event = self.getEvent() parents = [node] diff --git a/Lib/xml/sax/handler.py b/Lib/xml/sax/handler.py index 41105c0cee..25d55c1df5 100644 --- a/Lib/xml/sax/handler.py +++ b/Lib/xml/sax/handler.py @@ -326,7 +326,7 @@ property_encoding = "http://www.python.org/sax/properties/encoding" # processing a META tag) # read: return the current encoding (possibly established through # auto-detection. -# initial value: UTF-8 +# initial value: UTF-8 # property_interning_dict = "http://www.python.org/sax/properties/interning-dict" diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index f55eef57cc..6544f171d9 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py @@ -20,7 +20,7 @@ def __dict_replace(s, d): def escape(data, entities={}): """Escape &, <, and > in a string of data. - + You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. |
