diff markup/template.py @ 139:8332287b5508 trunk

Implement position reporting for XPath syntax errors. Closes #20.
author cmlenz
date Wed, 09 Aug 2006 12:25:02 +0000
parents d681d2c3cd8d
children c1f4390d50f8
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -430,7 +430,7 @@
 
     def __init__(self, value, filename=None, lineno=-1, offset=-1):
         Directive.__init__(self, None, filename, lineno, offset)
-        self.path = Path(value)
+        self.path = Path(value, filename, lineno)
         self.stream = []
 
     def __call__(self, stream, ctxt, directives):
Copyright (C) 2012-2017 Edgewall Software