summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-07-24 01:25:06 +0000
committerianb <devnull@localhost>2007-07-24 01:25:06 +0000
commit1389300d1957ca4dc13eddffbad30ec1eff6aeaa (patch)
treefd77f24202b9a3d90494192777aa050bc26d363c
parent2625d9c481c1925d4365c10cc298fc686ba6c8da (diff)
downloadtempita-1389300d1957ca4dc13eddffbad30ec1eff6aeaa.tar.gz
improve error message; use absolute import, because for some reason python2.5 doesn't like the relative import (?)
-rw-r--r--tempita/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tempita/__init__.py b/tempita/__init__.py
index 52dcbe2..bfc0d19 100644
--- a/tempita/__init__.py
+++ b/tempita/__init__.py
@@ -33,7 +33,7 @@ import re
import sys
import cgi
import urllib
-from _looper import looper
+from tempita._looper import looper
__all__ = ['TemplateError', 'Template', 'sub', 'HTMLTemplate',
'sub_html', 'html', 'bunch']
@@ -733,8 +733,7 @@ def fill_command(args=None):
options, args = parser.parse_args(args)
if len(args) < 1:
print 'You must give a template filename'
- print dir(parser)
- assert 0
+ sys.exit(2)
template_name = args[0]
args = args[1:]
vars = {}