/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/lint/lint-submodule.py
23 строки
650 B
MarcoFalke
contrib: Use text=True in subprocess over manual encoding handling
26 ноя 2025, 13:31
26 ноя 2025, 13:31
fab085c
Код
Авторство
О чём код?
#!/usr/bin/env python3 # # Copyright (c) 2022-present The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ This script checks for git modules """ import subprocess import sys def main(): submodules_list = subprocess.check_output(['git', 'submodule', 'status', '--recursive'], text = True).rstrip('\n') if submodules_list: print("These submodules were found, delete them:\n", submodules_list) sys.exit(1) sys.exit(0) if __name__ == '__main__': main()