mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
remnant python2 effects from 16.4.1 merge
This commit is contained in:
parent
3b6d680d15
commit
651726b540
3 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ class RequestConstraint(object):
|
||||||
"""Build a new RequestConstraint."""
|
"""Build a new RequestConstraint."""
|
||||||
try:
|
try:
|
||||||
constraintType = cls.CONSTRAINT_MAP[operator.upper()]
|
constraintType = cls.CONSTRAINT_MAP[operator.upper()]
|
||||||
except KeyError, AttributeError:
|
except KeyError is AttributeError:
|
||||||
errmsg = '{} is not a valid operator. Valid operators are: {}'
|
errmsg = '{} is not a valid operator. Valid operators are: {}'
|
||||||
validOperators = list(sorted(cls.CONSTRAINT_MAP.keys()))
|
validOperators = list(sorted(cls.CONSTRAINT_MAP.keys()))
|
||||||
raise ValueError(errmsg.format(operator, validOperators))
|
raise ValueError(errmsg.format(operator, validOperators))
|
||||||
|
|
|
@ -7,5 +7,5 @@ __all__ = [
|
||||||
'RequestConstraint'
|
'RequestConstraint'
|
||||||
]
|
]
|
||||||
|
|
||||||
from RequestConstraint import RequestConstraint
|
from .RequestConstraint import RequestConstraint
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# 06/23/2016 #5696 rjpeter Extend CommutativeTimestamp
|
# 06/23/2016 #5696 rjpeter Extend CommutativeTimestamp
|
||||||
##
|
##
|
||||||
|
|
||||||
from CommutativeTimestamp import CommutativeTimestamp
|
from .CommutativeTimestamp import CommutativeTimestamp
|
||||||
|
|
||||||
# TODO: Remove after 16.4.1 no longer in field
|
# TODO: Remove after 16.4.1 no longer in field
|
||||||
class FormattedDate(CommutativeTimestamp):
|
class FormattedDate(CommutativeTimestamp):
|
||||||
|
|
Loading…
Add table
Reference in a new issue