Skip to content
Myr

Merged in fix for Python 3 regarding precisions

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 · parents c4538a8, e589a3e · Browse files · 1 file+1 added−4 removed
This commit

State

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

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:jinja2/filters.py+1 added-4 removed
556 unmodified lines
557 raise FilterArgumentError('method must be common, ceil or floor')558 if method == 'common':559 return round(value, precision)560 func = getattr(math, method)561 if precision:562 return func(value * (10 ** precision)) / (10 ** precision)561 return func(value * (10 ** precision)) / (10 ** precision)563 else:564 return func(value)562563564@environmentfilter565def do_groupby(environment, value, attribute):
154 unmodified lines