From 8245e31036e47cf3bde84a5b39bdb5aa14898f83 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 10 Mar 2020 21:04:14 -0700 Subject: [PATCH] Don't show the _DotDict__default attribute in str. --- voussoirkit/dotdict.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voussoirkit/dotdict.py b/voussoirkit/dotdict.py index ce75a58..072b755 100644 --- a/voussoirkit/dotdict.py +++ b/voussoirkit/dotdict.py @@ -24,4 +24,6 @@ class DotDict: self.__dict__[key] = value def __repr__(self): - return f'DotDict {self.__dict__}' + display = self.__dict__.copy() + display.pop('_DotDict__default') + return f'DotDict {display}'