#NEWLINE# @ methodtrace ( _logger ) #NEWLINE# def open_device( self , dev ) : #NEWLINE# #INDENT# handle = _openusb_dev_handle ( ) #NEWLINE# _check ( _lib . openusb_open_device ( _ctx . handle , dev , 0 , byref ( handle ) ) ) #NEWLINE# return dev