File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -478,22 +478,22 @@ def new_puzzles_cb(self, puzzles):
478478
479479 md = hashlib .sha1 ()
480480 md .update (text .encode ())
481- digest = hash ( md .digest () )
481+ hash = md .hexdigest ( )
482482
483- if digest not in self ._puzzle_hashes :
484- self ._puzzle_hashes .add (digest )
483+ if hash not in self ._puzzle_hashes :
484+ self ._puzzle_hashes .add (hash )
485485
486486 env_global = {}
487487 env_local = {}
488488 exec (text , env_global , env_local )
489489
490- togglename = digest + "_toggle"
490+ togglename = hash + "_toggle"
491491 self .cloud [togglename ] = groupthink .gtk_tools .SharedToggleButton (' ' + env_local ['name' ] + ' ' )
492492 self .cloud [togglename ].set_active (False )
493493 self .cloud [togglename ].connect ("toggled" , self .puzzle_toggle_cb , hash )
494494 self .cloud [togglename ].sort_key = env_local ['sort_key' ]
495495
496- self ._puzzle_code [digest ] = env_local
496+ self ._puzzle_code [hash ] = env_local
497497
498498 kids = self .inner_modebox .get_children ()
499499 old_size = len (kids )
You can’t perform that action at this time.
0 commit comments