best practice import order; avoid return after else

This commit is contained in:
Michael James 2018-10-16 22:02:17 -06:00
parent 027d93ac70
commit 21e4795b0c
3 changed files with 4 additions and 5 deletions

View file

@ -10,9 +10,9 @@
# 09/07/17 6175 tgurney Override messageReceived # 09/07/17 6175 tgurney Override messageReceived
# #
import traceback
import dynamicserialize import dynamicserialize
from awips.dataaccess.PyNotification import PyNotification from awips.dataaccess.PyNotification import PyNotification
import traceback
class PyGeometryNotification(PyNotification): class PyGeometryNotification(PyNotification):

View file

@ -12,10 +12,10 @@
# #
# #
from thrift.protocol.TProtocol import *
from thrift.protocol.TBinaryProtocol import *
import struct import struct
import numpy import numpy
from thrift.protocol.TProtocol import *
from thrift.protocol.TBinaryProtocol import *
FLOAT = 64 FLOAT = 64

View file

@ -42,8 +42,7 @@ class GridParmInfo(object):
" RateParm: " + str(self.rateParm) + \ " RateParm: " + str(self.rateParm) + \
" GridType: " + self.gridType " GridType: " + self.gridType
return out return out
else: return "<Invalid>"
return "<Invalid>"
def __eq__(self, other): def __eq__(self, other):
if not isinstance(other, GridParmInfo): if not isinstance(other, GridParmInfo):