Title: Redundant code in pprint module.
Type: enhancement Stage: patch review
Components: Versions: Python 3.9, Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fdrake, palakjha
Priority: normal Keywords: patch

Created on 2020-03-17 16:19 by palakjha, last changed 2020-03-19 18:43 by palakjha.

Pull Requests
URL Status Linked Edit
PR 19046 open palakjha, 2020-03-17 16:52
Messages (1)
msg364442 - (view) Author: Palak Kumar Jha (palakjha) * Date: 2020-03-17 16:19
In the PrettyPrinter._format method, since self._dispatch has dict.__repr__ [key] mapped to self._pprint_dict [value] the elif block is not needed. Its work is already being done by the if block above, which searches self._dispatch to fetch the appropriate value.
Date User Action Args
2020-03-19 18:43:57palakjhasetnosy: + fdrake

versions: - Python 3.7
2020-03-17 16:52:42palakjhasetkeywords: + patch
stage: patch review
pull_requests: + pull_request18397
2020-03-17 16:19:33palakjhacreate