Skip to content
Myr

fixed two typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Priit Laes · committed by Priit Laes · parent 9a82205 · Browse files · 3 files+8 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+8 added−5 removed

  • other:+8 added−5 removed

3 files+8 added−5 removed

modified:jinja2/exceptions.py+1 added-1 removed
28 unmodified lines
29class TemplateSyntaxError(TemplateError):30 """Raised to tell the user that there is a problem with the template."""3132 def __init__(self, message, lineno, name):33 TEmplateError.__init__(self, '%s (line %s)' % (message, lineno))33 TemplateError.__init__(self, '%s (line %s)' % (message, lineno))34 self.message = message35 self.lineno = lineno36 self.name = name37
16 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
206 unmodified lines
207 -> 123208 """209 # if the delimiter doesn't have an html representation we check210 # if any of the items has. If yes we do a coercion to Markup211 if not hasttr(d, '__html__'):211 if not hasattr(d, '__html__'):212 value = list(value)213 do_escape = False214 for idx, item in enumerate(value):215 if hasattr(item, '__html__'):
401 unmodified lines
modified:jinja2/runtime.py+6 added-3 removed
299 unmodified lines
300 def __str__(self):301 return self.__unicode__().encode('utf-8')302303 def __repr__(self):304 return 'undefined'304 return 'Undefined'305306 def __len__(self):307 return 0308
19 unmodified lines
328 return u'{{ undefined value printed: %s }}' % self._undefined_hint329330331class StrictUndefined(Undefined):332 """An undefined that barks on print and iteration."""332 """An undefined that barks on print and iteration as well as boolean tests.333 In other words: you can do nothing with it except checking if it's defined334 using the `defined` test.335 """336334 __iter__ = __unicode__ = __len__ = Undefined._fail_with_error337 __iter__ = __unicode__ = __len__ = __nonzero__ = Undefined._fail_with_error