parameters: (self)
docstring: return a short string to name the port based on USB info
docstring_summary: return a short string to name the port based on USB info
docstring_tokens: return a short string to name the port based on USB info
function: def usb_description(self):
          """return a short string to name the port based on USB info"""
          if self.interface is not None:
              return '{} - {}'.format(self.product, self.interface)
          elif self.product is not None:
              return self.product
          else:
              return self.name
function_tokens: def usb_description ( self ) : if self . interface is not None : return '{} - {}' . format ( self . product , self . interface ) elif self . product is not None : return self . product else : return self . name