mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
Removed long for python 3
long is no longer a separate type.
This commit is contained in:
parent
40409c451c
commit
07d271cacf
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ INVALID_VALUE = numpy.float64(-999999)
|
||||||
class Level(object):
|
class Level(object):
|
||||||
|
|
||||||
def __init__(self, levelString=None):
|
def __init__(self, levelString=None):
|
||||||
self.id = 0L
|
try:
|
||||||
|
self.id = 0L
|
||||||
|
except SyntaxError:
|
||||||
|
#we are in python 3, no longer a separate long.
|
||||||
|
self.id=0
|
||||||
self.identifier = None
|
self.identifier = None
|
||||||
self.masterLevel = None
|
self.masterLevel = None
|
||||||
self.levelonevalue = INVALID_VALUE
|
self.levelonevalue = INVALID_VALUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue