Merge pull request #79 from srcarter3/main

Changes to make python-awips compatible with Python3.10
This commit is contained in:
srcarter3 2022-08-23 18:18:24 -06:00 committed by GitHub
commit f638aa9550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -17,10 +17,10 @@
# values to your EnumSet.
##
import collections
import collections.abc
class EnumSet(collections.MutableSet):
class EnumSet(collections.abc.MutableSet):
def __init__(self, enumClassName, iterable=[]):
self.__enumClassName = enumClassName

View file

@ -2,7 +2,7 @@
channels:
- https://conda.anaconda.org/conda-forge
dependencies:
- python=3.9
- python=3
- numpy
- nomkl
- matplotlib

View file

@ -10,7 +10,7 @@ dependencies = ['numpy', 'six']
if sys.version_info < (3, 4):
dependencies.append('enum34')
ver = "18.1.10"
ver = "18.1.11"
setup(
name='python-awips',

View file

@ -23,7 +23,7 @@ from multiprocessing import Process, Value, Condition, reduction
from .TServer import TServer
from thrift.transport.TTransport import TTransportException
import collections
import collections.abc
class TProcessPoolServer(TServer):
@ -41,7 +41,7 @@ class TProcessPoolServer(TServer):
self.postForkCallback = None
def setPostForkCallback(self, callback):
if not isinstance(callback, collections.Callable):
if not isinstance(callback, collections.abc.Callable):
raise TypeError("This is not a callback!")
self.postForkCallback = callback