Skip to content

Commit 4be6845

Browse files
committed
Make this code compatible with Python 3.10.
1 parent 7662baa commit 4be6845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

efficientdet/hparams_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515
"""Hparams for model architecture and trainer."""
1616
import ast
17-
import collections
17+
from collections import abc
1818
import copy
1919
from typing import Any, Dict, Text
2020
import six
@@ -145,7 +145,7 @@ def merge_dict_recursive(target, src):
145145
"""Recursively merge two nested dictionary."""
146146
for k in src.keys():
147147
if ((k in target and isinstance(target[k], dict) and
148-
isinstance(src[k], collections.Mapping))):
148+
isinstance(src[k], abc.Mapping))):
149149
merge_dict_recursive(target[k], src[k])
150150
else:
151151
target[k] = src[k]

0 commit comments

Comments
 (0)