def find_diff(file1, file2):
 DEBUG = True
 proc = subprocess.Popen([DIFF, file1, file2], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 (diff_output, std_err) = proc.communicate()
 if DEBUG:
  print '>>>Config differences:'
  print diff_output
 return diff_output

def find_diff ( file1 , file2 ) : DEBUG = True proc = subprocess . Popen ( [ DIFF , file1 , file2 ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) ( diff_output , std_err ) = proc . communicate ( ) if DEBUG : print '>>>Config differences:' print diff_output return diff_output
find the differences between the two configuraiton files .