#10 Make the script run on python 3.6 (aka, EL 7)
Merged 4 years ago by jibecfed. Opened 4 years ago by misc.
fedora-docs/ misc/translations-scripts run_py_36  into  master

file modified
+2 -2
@@ -113,7 +113,7 @@ 

  

      subprocess.run(['git', 'add', '.'], check=True, cwd=repo_dir)

  

-     out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, capture_output=True)

+     out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

  

      if out.stdout.decode("utf-8") :

          subprocess.run(["git", "commit", "-m", "automatic update of translated content"],
@@ -144,7 +144,7 @@ 

  

      subprocess.run(['git', 'add', '.'], check=True, cwd=repo_dir)

  

-     out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, capture_output=True)

+     out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

  

      if out.stdout.decode("utf-8") :

          subprocess.run(["git", "commit", "-m", "automatic update of pot/po files"],

Since capture_output is only on 3.7, we need to find another
way to detect we have to commit something

Pull-Request has been merged by jibecfed

4 years ago
Metadata