changeset 421:fbdbe27885e2 trunk

Template parsing passes the full path of the template to the XML parser so that it's included in parsing exceptions.
author cmlenz
date Tue, 20 Mar 2007 16:20:41 +0000
parents 91556138dae5
children 5d08a744636e
files genshi/template/markup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/template/markup.py
+++ b/genshi/template/markup.py
@@ -83,7 +83,7 @@
         include_href = None
 
         if not isinstance(source, Stream):
-            source = XMLParser(source, filename=self.filename,
+            source = XMLParser(source, filename=self.filepath,
                                encoding=encoding)
 
         for kind, data, pos in source:
Copyright (C) 2012-2017 Edgewall Software