Skip to content

Commit

Permalink
Merge pull request #92 from rcherrueau/fix-abc-mapping
Browse files Browse the repository at this point in the history
Import Mapping from collections.abc
  • Loading branch information
mraineri committed Jan 13, 2023
2 parents 857e718 + e67e6bb commit 1e32496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redfishMockupServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
import argparse
import time
import collections
import collections.abc
import json
import threading
import datetime
Expand Down Expand Up @@ -47,7 +47,7 @@ def dict_merge(dct, merge_dct):
:return: None
"""
for k in merge_dct:
if (k in dct and isinstance(dct[k], dict) and isinstance(merge_dct[k], collections.Mapping)):
if (k in dct and isinstance(dct[k], dict) and isinstance(merge_dct[k], collections.abc.Mapping)):
dict_merge(dct[k], merge_dct[k])
else:
dct[k] = merge_dct[k]
Expand Down

0 comments on commit 1e32496

Please sign in to comment.