#NEWLINE# def replaceGlobs( self , globs_ ) : #NEWLINE# #INDENT# globs = globs_ . copy ( ) #NEWLINE# if self . _isStale : #NEWLINE# #INDENT# self . _refresh ( ) #NEWLINE# #UNINDENT# if ( 'os' in globs ) : #NEWLINE# #INDENT# globs [ 'os' ] = fake_filesystem . FakeOsModule ( self . fs ) #NEWLINE# #UNINDENT# if ( 'glob' in globs ) : #NEWLINE# #INDENT# globs [ 'glob' ] = fake_filesystem_glob . FakeGlobModule ( self . fs ) #NEWLINE# #UNINDENT# if ( 'path' in globs ) : #NEWLINE# #INDENT# fake_os = ( fake_os [ 'os' ] if ( 'os' in globs ) else fake_filesystem . FakeOsModule ( self . fs ) ) #NEWLINE# globs [ 'path' ] = fake_os . path #NEWLINE# #UNINDENT# if ( 'shutil' in globs ) : #NEWLINE# #INDENT# globs [ 'shutil' ] = fake_filesystem_shutil . FakeShutilModule ( self . fs ) #NEWLINE# #UNINDENT# if ( 'tempfile' in globs ) : #NEWLINE# #INDENT# globs [ 'tempfile' ] = fake_tempfile . FakeTempfileModule ( self . fs ) #NEWLINE# #UNINDENT# return globs