Skip to content

Commit f638aa9

Browse files
author
srcarter3
authored
Merge pull request #79 from srcarter3/main
Changes to make python-awips compatible with Python3.10
2 parents c03df43 + 2d5bc31 commit f638aa9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dynamicserialize/dstypes/java/util/EnumSet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
# values to your EnumSet.
1818
##
1919

20-
import collections
20+
import collections.abc
2121

2222

23-
class EnumSet(collections.MutableSet):
23+
class EnumSet(collections.abc.MutableSet):
2424

2525
def __init__(self, enumClassName, iterable=[]):
2626
self.__enumClassName = enumClassName

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
channels:
33
- https://conda.anaconda.org/conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3
66
- numpy
77
- nomkl
88
- matplotlib

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if sys.version_info < (3, 4):
1111
dependencies.append('enum34')
1212

13-
ver = "18.1.10"
13+
ver = "18.1.11"
1414

1515
setup(
1616
name='python-awips',

thrift/server/TProcessPoolServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from .TServer import TServer
2525
from thrift.transport.TTransport import TTransportException
26-
import collections
26+
import collections.abc
2727

2828

2929
class TProcessPoolServer(TServer):
@@ -41,7 +41,7 @@ def __init__(self, *args):
4141
self.postForkCallback = None
4242

4343
def setPostForkCallback(self, callback):
44-
if not isinstance(callback, collections.Callable):
44+
if not isinstance(callback, collections.abc.Callable):
4545
raise TypeError("This is not a callback!")
4646
self.postForkCallback = callback
4747

0 commit comments

Comments
 (0)