~ubuntu-branches/ubuntu/karmic/python-docutils/karmic

« back to all changes in this revision

Viewing changes to docutils/transforms/components.py

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Author: David Goodger
2
2
# Contact: goodger@users.sourceforge.net
3
 
# Revision: $Revision: 1.8 $
4
 
# Date: $Date: 2002/10/24 00:50:34 $
 
3
# Revision: $Revision: 3909 $
 
4
# Date: $Date: 2005-09-26 20:17:31 +0200 (Mon, 26 Sep 2005) $
5
5
# Copyright: This module has been placed in the public domain.
6
6
 
7
7
"""
49
49
        format = pending.details['format']
50
50
        component = self.document.transformer.components[component_type]
51
51
        if component.supports(format):
52
 
            pending.parent.replace(pending, pending.details['nodes'])
 
52
            pending.replace_self(pending.details['nodes'])
53
53
        else:
54
54
            pending.parent.remove(pending)