def getObjectTypeBit(self, t):
        '''
        returns the bit value of the string object type
        '''
        if isinstance(t, string_types):
            t = t.upper()
            try:
                return self.objectType[t]
            except KeyError:
                raise CommandExecutionError((
                    'Invalid object type "{0}".  It should be one of the following:  {1}'
                    ).format(t, ', '.join(self.objectType)))
        else:
            return t
def getObjectTypeBit ( self , t ) : if isinstance ( t , string_types ) : t = t . upper ( ) try : return self . objectType [ t ] except KeyError : raise CommandExecutionError ( ( 'Invalid object type "{0}".  It should be one of the following:  {1}' ) . format ( t , ', ' . join ( self . objectType ) ) ) else : return t
returns the bit value of the string object type