mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Add optional 'force' argument (default 0) to load_dict().
If set, redo the display even if it's the same dict.
This commit is contained in:
parent
0e5088fcc4
commit
105b9c7de4
1 changed files with 2 additions and 2 deletions
|
@ -220,8 +220,8 @@ class NamespaceViewer:
|
|||
|
||||
dict = -1
|
||||
|
||||
def load_dict(self, dict):
|
||||
if dict is self.dict:
|
||||
def load_dict(self, dict, force=0):
|
||||
if dict is self.dict and not force:
|
||||
return
|
||||
subframe = self.subframe
|
||||
frame = self.frame
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue