Skip to content

Commit

Permalink
Fix init() function for CaseFoldDict
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Jan 3, 2022
1 parent c3f6edb commit a8592b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commonpy/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def __init__(self, data=None):
super(CaseFoldDict, self).__init__()
if data is None:
data = {}
for key, val in data.items():
self[key] = val
self.update(data)


def __contains__(self, key):
Expand Down

0 comments on commit a8592b2

Please sign in to comment.