#NEWLINE# def __init__( self , path = None ) : #NEWLINE# #INDENT# self . dev = None #NEWLINE# self . lock = threading . Lock ( ) #NEWLINE# if ( path and ( not self . open ( path ) ) ) : #NEWLINE# #INDENT# raise IOError ( errno . ENODEV , os . strerror ( errno . ENODEV ) )