Changeset 3807:60c9a6863d3b in livinglogic.python.xist

Show
Ignore:
Timestamp:
06/29/09 23:01:03 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix typos in docstrings.

Files:
1 modified

Legend:

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

    r3806 r3807  
    109109    def encode(self, text): 
    110110        """ 
    111         Encode :var:`text` with the encoding and error handling currently 
    112         active and return the resulting byte string. 
     111        Encode :var:`text` with the encoding and error handling currently active 
     112        and return the resulting byte string. 
    113113        """ 
    114114        return self.encoder.encode(text) 
     
    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 return the resulting :class:`str` 
    122122        object. 
    123123        """ 
     
    184184        """ 
    185185        Return (and register) a namespace prefix for the namespace name 
    186         :var:`xmlns`. This honors the namespace configuration via ``self.prefixes`` 
     186        :var:`xmlns`. This honors the namespace configuration from ``self.prefixes`` 
    187187        and ``self.prefixdefault``. Furthermore the same prefix will be returned 
    188188        from now on (except when the empty prefix becomes invalid once global 
     
    218218        Get and register a namespace prefix for the namespace :var:`object` lives 
    219219        in (specified by the :attr:`xmlns` attribute of :var:`object`). Similar 
    220         to :meth:`getnamespaceprefix` this honors the namespace configuration via 
     220        to :meth:`getnamespaceprefix` this honors the namespace configuration from 
    221221        ``self.prefixes`` and ``self.prefixdefault`` (except when a global 
    222222        attribute requires a non-empty prefix). 
     
    341341    def write(self, stream, node, base=None): 
    342342        """ 
    343         Write :var:`node` to the file-like object :var:`stream` (which must provide 
    344         a :meth:`write` method). 
     343        Write :var:`node` to the file-like object :var:`stream` (which must 
     344        provide a :meth:`write` method). 
    345345        """ 
    346346        for part in self.iterbytes(node, base):