~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-02 15:28:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4253.
  • Revision ID: jelmer@samba.org-20090402152811-0uxng6q5kseoug7q
Add new module with generic serializer information; keep XML-specific bits in 
xml_serializer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from bzrlib.xml_serializer import ElementTree, SubElement, Element, Serializer
 
17
from bzrlib.xml_serializer import (
 
18
    Element,
 
19
    ElementTree,
 
20
    SubElement,
 
21
    XMLSerializer,
 
22
    )
18
23
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
19
24
import bzrlib.inventory as inventory
20
25
from bzrlib.revision import Revision
21
26
from bzrlib.errors import BzrError
22
27
 
23
28
 
24
 
class _Serializer_v4(Serializer):
 
29
class _Serializer_v4(XMLSerializer):
25
30
    """Version 0.0.4 serializer
26
31
 
27
32
    You should use the serializer_v4 singleton.