From 1389300d1957ca4dc13eddffbad30ec1eff6aeaa Mon Sep 17 00:00:00 2001 From: ianb Date: Tue, 24 Jul 2007 01:25:06 +0000 Subject: improve error message; use absolute import, because for some reason python2.5 doesn't like the relative import (?) --- tempita/__init__.py | 5 ++--- 1 file 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 = {} -- cgit v1.2.1