mirror of https://github.com/MISP/PyMISPGalaxies
fix: Use collections.abc instead of collections
parent
60bf701561
commit
c54addbb1e
|
@ -5,7 +5,7 @@ import json
|
||||||
from json import JSONEncoder
|
from json import JSONEncoder
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import collections
|
from collections.abc import Mapping
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import re
|
import re
|
||||||
from typing import List, Dict, Optional, Any, Tuple
|
from typing import List, Dict, Optional, Any, Tuple
|
||||||
|
@ -67,7 +67,7 @@ class Galaxy():
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
||||||
class Galaxies(collections.Mapping):
|
class Galaxies(Mapping):
|
||||||
|
|
||||||
def __init__(self, galaxies: List=[]):
|
def __init__(self, galaxies: List=[]):
|
||||||
if not galaxies:
|
if not galaxies:
|
||||||
|
@ -202,7 +202,7 @@ class ClusterValue():
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
||||||
class Cluster(collections.Mapping):
|
class Cluster(Mapping):
|
||||||
|
|
||||||
def __init__(self, cluster: Dict[str, Any], skip_duplicates: bool=False):
|
def __init__(self, cluster: Dict[str, Any], skip_duplicates: bool=False):
|
||||||
self.cluster = cluster
|
self.cluster = cluster
|
||||||
|
@ -266,7 +266,7 @@ class Cluster(collections.Mapping):
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
||||||
class Clusters(collections.Mapping):
|
class Clusters(Mapping):
|
||||||
|
|
||||||
def __init__(self, clusters: List=[], skip_duplicates: bool=False):
|
def __init__(self, clusters: List=[], skip_duplicates: bool=False):
|
||||||
if not clusters:
|
if not clusters:
|
||||||
|
|
Loading…
Reference in New Issue