Loading

Paste #pfpykjift

  1. diff --git a/check_lang_compatibility.py b/check_lang_compatibility.py
  2. --- a/check_lang_compatibility.py
  3. +++ b/check_lang_compatibility.py
  4. @@ -58,8 +58,12 @@ def get_langfile_rev(name, rev):
  5.      @return: Lines wit string names.
  6.      @rtype:  C{list} of C{str}
  7.      """
  8. +    # Copy the environment, and add HGPLAIN
  9. +    env = dict(kv for kv in os.environ.items())
  10. +    env['HGPLAIN'] = ''
  11. +
  12.      cmd = ['hg', 'cat', '-r', rev, name]
  13. -    txt = subprocess.check_output(cmd, universal_newlines=True, env={'HGPLAIN':''})
  14. +    txt = subprocess.check_output(cmd, universal_newlines=True, env=env)
  15.  
  16.      lines = []
  17.      for line in txt.split('\n'):

Comments