Skip to content
Myr

fixed an embarrassing mistake in the documentation

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 771c750 · Browse files · 3 files+9 added−6 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+9 added−6 removed

  • other:+9 added−6 removed

3 files+9 added−6 removed

modified:docs/intro.rst+1 added-1 removed
70 unmodified lines
71Installing the development version72~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~73741. Install `mercurial`_752. ``svn co http://dev.pocoo.org/hg/jinja2-main jinja2``752. ``hg clone http://dev.pocoo.org/hg/jinja2-main jinja2``763. ``cd jinja2``774. ``ln -s jinja2 /usr/lib/python2.X/site-packages``7879As an alternative to steps 4 you can also do ``python setup.py develop``
33 unmodified lines
modified:jinja2/environment.py+1 added-1 removed
602 unmodified lines
603 self.__dict__.update(context.get_exported())604 self.__name__ = template.name605606 __html__ = lambda x: Markup(concat(x._body_stream))607 __unicode__ = lambda x: unicode(concat(x._body_stream))607 __unicode__ = lambda x: concat(x._body_stream)608609 def __str__(self):610 return unicode(self).encode('utf-8')611
67 unmodified lines
modified:jinja2/runtime.py+7 added-4 removed
138 unmodified lines
139 def __contains__(self, name):140 return name in self.vars or name in self.parent141142 def __getitem__(self, key):143 """Lookup a variable or raise `KeyError`."""144 if key in self.vars:145 return self.vars[key]146 return self.parent[key]143 """Lookup a variable or raise `KeyError` if the variable is144 undefined.145 """146 item = self.resolve(key)147 if isinstance(item, Undefined):148 raise KeyError(key)149 return item150151 def __repr__(self):152 return '<%s %s of %r>' % (153 self.__class__.__name__,
290 unmodified lines