Merge pull request #3586 from mhils/issue-py38compat

fix py38 compat
This commit is contained in:
Maximilian Hils 2019-07-18 03:13:50 +02:00 committed by GitHub
commit 256c0c94fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import typing
import click
import collections
import collections.abc
import pydivert
import pydivert.consts
@ -171,7 +172,7 @@ def MIB_TCPTABLE_OWNER_PID(size):
TCP_TABLE_OWNER_PID_CONNECTIONS = 4
class TcpConnectionTable(collections.Mapping):
class TcpConnectionTable(collections.abc.Mapping):
DEFAULT_TABLE_SIZE = 4096
def __init__(self):