Skip to content
Myr

pp -> pretty

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 f2ce126 · Browse files · 3 files+5 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+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:jinja/filters.py+1 added-1 removed
426 unmodified lines
427 """428 Pretty print a variable. Useful for debugging.429430 With Jinja 1.2 onwards you can pass it a parameter. If this parameter431 is truthy the output will be more verbose (this requires `pp`)431 is truthy the output will be more verbose (this requires `pretty`)432 """433 def wrapped(env, context, value):434 return pformat(value, verbose=verbose)435 return wrapped
551 unmodified lines
modified:jinja/utils.py+3 added-3 removed
350 unmodified lines
351352353def pformat(obj, verbose=False):354 """355 Prettyprint an object. Either use the `pp` library or the355 Prettyprint an object. Either use the `pretty` library or the356 builtin `pprint`.357 """358 try:359 from pp import pp360 return pp(obj, verbose=verbose)359 from pretty import pretty360 return pretty(obj, verbose=verbose)361 except ImportError:362 from pprint import pformat363 return pformat(obj)364
276 unmodified lines
modified:CHANGES+1 added-1 removed
77 unmodified lines
78- `PackageLoader` can now work without pkg_resources too7980- added `getattribute` and `getitem` filter.8182- added support for the `pp` library.82- added support for the `pretty` library.838485Version 1.186-----------
121 unmodified lines