From c7f0d1f0bc5b6719b4305886c3c4eab0e62316be Mon Sep 17 00:00:00 2001 From: Keerthi Vasan S A Date: Fri, 23 Feb 2024 20:24:23 +0530 Subject: [PATCH] feat: apply changes from review suggestions Co-authored-by: Paolo Melchiorre Co-authored-by: nessita <124304+nessita@users.noreply.github.com> --- django/template/defaultfilters.py | 2 +- django/utils/repr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 9295fdcf9c..631dd6908f 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -974,7 +974,7 @@ def phone2numeric_filter(value): @register.filter(is_safe=True) -def pprint(v): +def pprint(value): repr_instance = DjangoRepr() repr_instance.config(limit=EXCEPTION_PRINT_LIMIT) diff --git a/django/utils/repr.py b/django/utils/repr.py index 567b70903b..07fb4369c4 100644 --- a/django/utils/repr.py +++ b/django/utils/repr.py @@ -5,7 +5,7 @@ import reprlib class DjangoRepr(reprlib.Repr): def config(self, limit): - """Sets maximum print length for all data structures using the given value""" + """Set maximum print length for all data structures to `limit`.""" self.limit = limit for attr in dir(self): if attr.startswith("max") and attr != "maxlevel":