Skip to content

Commit

Permalink
Merge pull request googleapis#107 from Psynbiotik/MicroDictPropogation
Browse files Browse the repository at this point in the history
Have values of type dict returned also be converted to type MicroDict.
  • Loading branch information
Narcolapser authored Jul 23, 2018
2 parents 9f84dbe + ab49e4a commit ff94eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions O365/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def __getitem__(self, key):
result = super(MicroDict, self).get(key[:1].lower() + key[1:], None)
if result is None:
result = super(MicroDict, self).get(key[:1].upper() + key[1:])
if type(result) is dict:
result = MicroDict(result)
return result


Expand Down

0 comments on commit ff94eb1

Please sign in to comment.