#NEWLINE# def sameopenfile( fp1 , fp2 ) : #NEWLINE# #INDENT# 'Test whether two open file objects reference the same file' #NEWLINE# s1 = os . fstat ( fp1 ) #NEWLINE# s2 = os . fstat ( fp2 ) #NEWLINE# return samestat ( s1 , s2 )