#NEWLINE# def open( self , file , flags , mode = 511 , * args , **kw ) : #NEWLINE# #INDENT# 'Called for low-level os.open()' #NEWLINE# if ( ( flags & WRITE_FLAGS ) and ( not self . _ok ( file ) ) ) : #NEWLINE# #INDENT# self . _violation ( 'os.open' , file , flags , mode , * args , ** kw ) #NEWLINE# #UNINDENT# return _os . open ( file , flags , mode , * args , ** kw )