Skip to content

Commit f918ed0

Browse files
authored
Fix deprecated imported from collections
1 parent 4e226e3 commit f918ed0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reportportal_client/service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
limitations under the License.
1515
"""
1616

17-
import collections
1817
import json
1918
import requests
2019
import uuid
@@ -23,10 +22,12 @@
2322
import platform
2423

2524
import six
25+
from six.moves.collections_abc import Mapping
2626
from requests.adapters import HTTPAdapter
2727

2828
from .errors import ResponseError, EntryCreatedError, OperationCompletionError
2929

30+
3031
POST_LOGBATCH_RETRY_COUNT = 10
3132
logger = logging.getLogger(__name__)
3233
logger.addHandler(logging.NullHandler())
@@ -435,7 +436,7 @@ def log_batch(self, log_data, item_id=None, force=False):
435436
del log_item["attachment"]
436437

437438
if attachment:
438-
if not isinstance(attachment, collections.Mapping):
439+
if not isinstance(attachment, Mapping):
439440
attachment = {"data": attachment}
440441

441442
name = attachment.get("name", str(uuid.uuid4()))

0 commit comments

Comments
 (0)