def getDevType(self, dev):
        """Returns type of device dev.
        
        @return: Device type as string.
        
        """
        if self._devClassTree is None:
            self._initDevClasses()
        return self._mapDevType.get(dev)
def getDevType ( self , dev ) : if self . _devClassTree is None : self . _initDevClasses ( ) return self . _mapDevType . get ( dev )
Returns type of device dev.
        
        @return: Device type as string.