Skip to content

Commit

Permalink
added get method to config object
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Jan 24, 2025
1 parent 8734376 commit 983d44c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions h5pyd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def __getitem__(self, name):
else:
return None
return Config._cfg[name]

def get(self, name):
""" alias for __getitem__ """
return self.__getitem__(name)

def __setitem__(self, name, obj):
""" set config item """
Expand Down

0 comments on commit 983d44c

Please sign in to comment.