Django

Code

Changeset 6975

Show
Ignore:
Timestamp:
12/22/07 13:32:54 (1 year ago)
Author:
adrian
Message:

Negligible cleanups to django.template.context

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/context.py

    r6854 r6975  
    1010class Context(object): 
    1111    "A stack container for variable context" 
    12  
    1312    def __init__(self, dict_=None, autoescape=True): 
    1413        dict_ = dict_ or {} 
     
    7978                mod = __import__(module, {}, {}, [attr]) 
    8079            except ImportError, e: 
    81                 raise ImproperlyConfigured, 'Error importing request processor module %s: "%s"' % (module, e
     80                raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e)
    8281            try: 
    8382                func = getattr(mod, attr) 
    8483            except AttributeError: 
    85                 raise ImproperlyConfigured, 'Module "%s" does not define a "%s" callable request processor' % (module, attr
     84                raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr)
    8685            processors.append(func) 
    8786        _standard_context_processors = tuple(processors) 
     
    103102        for processor in get_standard_processors() + processors: 
    104103            self.update(processor(request)) 
    105