mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
Merge pull request #79 from srcarter3/main
Changes to make python-awips compatible with Python3.10
This commit is contained in:
commit
f638aa9550
4 changed files with 6 additions and 6 deletions
|
@ -17,10 +17,10 @@
|
||||||
# values to your EnumSet.
|
# values to your EnumSet.
|
||||||
##
|
##
|
||||||
|
|
||||||
import collections
|
import collections.abc
|
||||||
|
|
||||||
|
|
||||||
class EnumSet(collections.MutableSet):
|
class EnumSet(collections.abc.MutableSet):
|
||||||
|
|
||||||
def __init__(self, enumClassName, iterable=[]):
|
def __init__(self, enumClassName, iterable=[]):
|
||||||
self.__enumClassName = enumClassName
|
self.__enumClassName = enumClassName
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
channels:
|
channels:
|
||||||
- https://conda.anaconda.org/conda-forge
|
- https://conda.anaconda.org/conda-forge
|
||||||
dependencies:
|
dependencies:
|
||||||
- python=3.9
|
- python=3
|
||||||
- numpy
|
- numpy
|
||||||
- nomkl
|
- nomkl
|
||||||
- matplotlib
|
- matplotlib
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -10,7 +10,7 @@ dependencies = ['numpy', 'six']
|
||||||
if sys.version_info < (3, 4):
|
if sys.version_info < (3, 4):
|
||||||
dependencies.append('enum34')
|
dependencies.append('enum34')
|
||||||
|
|
||||||
ver = "18.1.10"
|
ver = "18.1.11"
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='python-awips',
|
name='python-awips',
|
||||||
|
|
|
@ -23,7 +23,7 @@ from multiprocessing import Process, Value, Condition, reduction
|
||||||
|
|
||||||
from .TServer import TServer
|
from .TServer import TServer
|
||||||
from thrift.transport.TTransport import TTransportException
|
from thrift.transport.TTransport import TTransportException
|
||||||
import collections
|
import collections.abc
|
||||||
|
|
||||||
|
|
||||||
class TProcessPoolServer(TServer):
|
class TProcessPoolServer(TServer):
|
||||||
|
@ -41,7 +41,7 @@ class TProcessPoolServer(TServer):
|
||||||
self.postForkCallback = None
|
self.postForkCallback = None
|
||||||
|
|
||||||
def setPostForkCallback(self, callback):
|
def setPostForkCallback(self, callback):
|
||||||
if not isinstance(callback, collections.Callable):
|
if not isinstance(callback, collections.abc.Callable):
|
||||||
raise TypeError("This is not a callback!")
|
raise TypeError("This is not a callback!")
|
||||||
self.postForkCallback = callback
|
self.postForkCallback = callback
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue