Commits

Walter Dörwald committed 58c7869

Backed out changeset c12ed4823e36 (UL4 file format version bump).

Comments (0)

Files changed (1)

 	Rendering the template can be done with the methods :meth:`render` (which
 	is a generator) or :meth:`renders` (which returns a string).
 	"""
-	version = "12"
+	version = "11"
 
 	def __init__(self):
 		self.startdelim = None
 		version = version.rstrip()
 		if version != self.version:
 			raise ValueError("invalid version, expected %r got, %r" % (self.version, version))
-		type = stream.readline()
-		type = type.rstrip()
-		if type != "template":
-			raise ValueError("invalid type, expected 'template', got %r" % type)
 		self.startdelim = _readstr(u"<")
 		_readcr()
 		self.enddelim = _readstr(u">")
 				yield term
 				yield string
 
-		yield "ul4\n%s\ntemplate\n" % self.version
+		yield "ul4\n%s\n" % self.version
 		for p in _writestr("<", self.startdelim): yield p
 		yield "\n"
 		for p in _writestr(">", self.enddelim): yield p