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
#
import traceback
import dynamicserialize
from awips.dataaccess.PyNotification import PyNotification
import traceback
class PyGeometryNotification(PyNotification):

View file

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

View file

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