#NEWLINE# def _aquire_lock( self ) : #NEWLINE# #INDENT# if ( not self . _read_only ) : #NEWLINE# #INDENT# if ( not self . _lock ) : #NEWLINE# #INDENT# if isinstance ( self . _file_or_files , ( tuple , list ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Write-ConfigParsers can operate on a single file only, multiple files have been passed' ) #NEWLINE# #UNINDENT# file_or_files = self . _file_or_files #NEWLINE# if ( not isinstance ( self . _file_or_files , string_types ) ) : #NEWLINE# #INDENT# file_or_files = self . _file_or_files . name #NEWLINE# #UNINDENT# self . _lock = self . t_lock ( file_or_files ) #NEWLINE# #UNINDENT# self . _lock . _obtain_lock ( )