Переглянути джерело

Use the older `universal_newlines` name instead of `text` (#6506)

skullydazed 6 роки тому
батько
коміт
3cb28bbe42
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      bin/qmk

+ 1 - 1
bin/qmk

@@ -38,7 +38,7 @@ with open('requirements.txt', 'r') as fd:
 
 # Figure out our version
 command = ['git', 'describe', '--abbrev=6', '--dirty', '--always', '--tags']
-result = subprocess.run(command, text=True, capture_output=True)
+result = subprocess.run(command, universal_newlines=True, capture_output=True)
 
 if result.returncode == 0:
     os.environ['QMK_VERSION'] = 'QMK ' + result.stdout.strip()