Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nbardy committed Sep 3, 2020
1 parent 86c3f7b commit 7380846
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions wandb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,11 +977,3 @@ def add_import_hook(fullname, on_import):
_import_hook = ImportMetaHook()
_import_hook.install()
_import_hook.add(fullname, on_import)

def get_nested(dict_, *keys, default=None):
if not isinstance(dict_, dict):
return default
elem = dict_.get(keys[0], default)
if len(keys) == 1:
return elem
return get_nested(elem, *keys[1:], default=default)

0 comments on commit 7380846

Please sign in to comment.