Skip to content

Commit 6e12aea

Browse files
sfc-gh-stakedaankit-bhatnagar167
authored andcommitted
SNOW-76497: Substituted collections for collections.abc for deprecated cases in Python 3.6
1 parent 21af312 commit 6e12aea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Copyright (c) 2012-2019 Snowflake Computing Inc. All right reserved.
55
#
6-
import collections
6+
import collections.abc
77
import contextlib
88
import gzip
99
import itertools
@@ -184,7 +184,7 @@ def __call__(self, r):
184184
return r
185185

186186

187-
class ResultIterWithTimings(collections.Iterator):
187+
class ResultIterWithTimings(collections.abc.Iterator):
188188
DOWNLOAD = u"download"
189189
PARSE = u"parse"
190190

ssl_wrap_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
import socket
2222
import sys
2323
import time
24-
from collections import namedtuple, Mapping
24+
from collections import namedtuple
25+
from collections.abc import Mapping
2526

2627
try:
2728
monotonic = time.monotonic

0 commit comments

Comments
 (0)