Changeset 3841:d8e0323cec13 in livinglogic.python.xist

Show
Ignore:
Timestamp:
07/17/09 17:00:21 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix typos. Correct docstring.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/publishers.py

    r3807 r3841  
    6363            for publishing. Keys in the dictionary are either namespace names or 
    6464            objects that have an ``xmlns`` attribute which is the namespace name. 
    65             Value can be: 
     65            Values can be: 
    6666 
    6767            :const:`False` 
     
    119119        object. The publisher will apply the configured encoding, error handling 
    120120        and the current text filter (which escapes characters that can't appear 
    121         in text data (like ``<`` etc.)) and return the resulting :class:`str` 
     121        in text data (like ``<`` etc.)) and returns the resulting :class:`str` 
    122122        object. 
    123123        """ 
     
    129129    def pushtextfilter(self, filter): 
    130130        """ 
    131         Pushes a new text filter function on the text filter stack. This function 
    132         is responsible for escaping characters that can't appear in text data 
    133         (like ``<``)). This is used to switch on escaping of ``"`` inside 
     131        Pushes a new text filter function ontp the text filter stack. This 
     132        function is responsible for escaping characters that can't appear in text 
     133        data (like ``<``)). This is used to switch on escaping of ``"`` inside 
    134134        attribute values. 
    135135        """ 
     
    313313    def bytes(self, node, base=None): 
    314314        """ 
    315         A generator that will produce a serialized byte string in XML format for 
    316         the XIST node :var:`node`. 
     315        Return a byte string in XML format for the XIST node :var:`node`. 
    317316        """ 
    318317        return "".join(self.iterbytes(node, base)) 
     
    333332    def string(self, node, base=None): 
    334333        """ 
    335         Return a serialized unicode string for :var:`node`. 
     334        Return a unicode string for :var:`node`. 
    336335        """ 
    337336        decoder = codecs.getdecoder("xml")