Commits

Walter Dörwald  committed c0d65bd Merge

Merge.

  • Participants
  • Parent commits 7ee3220, 58c7869

Comments (0)

Files changed (1)

File src/ll/ul4c.py

 	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, source=None, startdelim="<?", enddelim="?>"):
 		"""
 		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