comparison genshi/output.py @ 822:70fddd2262f5 trunk

Get rid of some Python 2.3 legacy that's no longer needed now that 2.4 is the baseline.
author cmlenz
date Wed, 11 Mar 2009 22:14:32 +0000
parents 52219748e5c1
children 6e46513e1c5c
comparison
equal deleted inserted replaced
819:22bf087580f6 822:70fddd2262f5
127 'svg', '-//W3C//DTD SVG Tiny 1.1//EN', 127 'svg', '-//W3C//DTD SVG Tiny 1.1//EN',
128 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd' 128 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd'
129 ) 129 )
130 SVG = SVG_FULL 130 SVG = SVG_FULL
131 131
132 @classmethod
132 def get(cls, name): 133 def get(cls, name):
133 """Return the ``(name, pubid, sysid)`` tuple of the ``DOCTYPE`` 134 """Return the ``(name, pubid, sysid)`` tuple of the ``DOCTYPE``
134 declaration for the specified name. 135 declaration for the specified name.
135 136
136 The following names are recognized in this version: 137 The following names are recognized in this version:
162 'xhtml11': cls.XHTML11, 163 'xhtml11': cls.XHTML11,
163 'svg': cls.SVG, 'svg-full': cls.SVG_FULL, 164 'svg': cls.SVG, 'svg-full': cls.SVG_FULL,
164 'svg-basic': cls.SVG_BASIC, 165 'svg-basic': cls.SVG_BASIC,
165 'svg-tiny': cls.SVG_TINY 166 'svg-tiny': cls.SVG_TINY
166 }.get(name.lower()) 167 }.get(name.lower())
167 get = classmethod(get)
168 168
169 169
170 class XMLSerializer(object): 170 class XMLSerializer(object):
171 """Produces XML text from an event stream. 171 """Produces XML text from an event stream.
172 172
Copyright (C) 2012-2017 Edgewall Software