diff --git a/README.rst b/README.rst index 7d9c1aa40dd59df4eae945a2ff5fafed336dcc9f..d8092512413e87f0676b652b51ed1e209d20b5f9 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,6 @@ The following Jinja filters were added: - :code:`from_yaml`: Convert from yaml. - :code:`to_json`: Convert to json. - :code:`from_json`: Convert from json. -- :code:`pprint`: Pretty print variable. - :code:`combine`: Combine 2 dictionaries. - :code:`to_toml`: Convert to toml. - :code:`from_toml`: Convert from toml. diff --git a/VERSION b/VERSION index 267577d47e497a0630bc454b3f74c4fd9a10ced4..2b7c5ae01848a77d95e2792eb83ab605c9aed91a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.1 +0.4.2 diff --git a/template/filters.py b/template/filters.py index c2b99563f6ddd5d5f3755cc567ce97691051fcba..ab57b9b0522baad90356f2306ca8ec4825ad7a5f 100644 --- a/template/filters.py +++ b/template/filters.py @@ -72,25 +72,6 @@ def from_yaml(value): return safe_load(value) -def pprint(value): - ''' - Returns a pretty string representation of the data structure given. - Examples: - >>> pprint(1) - '1' - >>> import six - >>> output = pprint([{'first_name': 'John', 'last_name': 'Doe'}, {'first_name': 'Jane', 'last_name': 'Doe'}]) # noqa: E501 - >>> if six.PY3: - ... output == "[{'first_name': 'John', 'last_name': 'Doe'},\\n {'first_name': 'Jane', 'last_name': 'Doe'}]" - ... elif six.PY2: - ... output == "[{u'first_name': u'John', u'last_name': u'Doe'},\\n {u'first_name': u'Jane', u'last_name': u'Doe'}]" - ... - True - ''' - from pprint import pformat - return pformat(value) - - def combine(default, override): ''' Returns a combined dictionary of the 2 dictionaries given (with the 2nd