4 def have_needed_diff_support():
5 if not os.path.exists('/usr/bin/diff'):
8 ld_cmd = subprocess.Popen(
9 ['/usr/bin/diff', '--help'], stdout=subprocess.PIPE, env={'LANG': 'C'})
10 ld_out = ld_cmd.stdout.read().decode()
13 return '-line-format' in ld_out
15 if not have_needed_diff_support():
16 config.unsupported = True