mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
More modifications to the source v20 python code
- DataAccessLayer will have more changes to come to re-incorporate MJs changes, but for now, change the THRIFT_HOST to "edex" - EnumSet has to use collections.abc import instead of collections to be compatible with newer versions of python (3.10)
This commit is contained in:
parent
29715baccc
commit
018afefee6
2 changed files with 3 additions and 6 deletions
|
@ -49,10 +49,7 @@ import sys
|
|||
import subprocess
|
||||
import warnings
|
||||
|
||||
THRIFT_HOST = subprocess.check_output(
|
||||
"source /awips2/fxa/bin/setup.env; echo $DEFAULT_HOST",
|
||||
shell=True).decode().strip()
|
||||
|
||||
THRIFT_HOST = "edex"
|
||||
|
||||
USING_NATIVE_THRIFT = False
|
||||
|
||||
|
|
|
@ -37,10 +37,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
|
||||
|
|
Loading…
Add table
Reference in a new issue