mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-28 14:59:22 +01:00
scripted-diff: Use new python 3.7 keywords
-BEGIN VERIFY SCRIPT- sed -i 's/universal_newlines/text/g' $(git grep -l universal_newlines) -END VERIFY SCRIPT-
This commit is contained in:
@@ -38,14 +38,14 @@ def main():
|
||||
os.chdir(CODE_DIR)
|
||||
files = subprocess.check_output(
|
||||
['git', 'ls-files', '--', '*.h', '*.cpp'],
|
||||
universal_newlines=True,
|
||||
text=True,
|
||||
).splitlines()
|
||||
|
||||
command = [sys.executable, "../contrib/devtools/circular-dependencies.py", *files]
|
||||
dependencies_output = subprocess.run(
|
||||
command,
|
||||
stdout=subprocess.PIPE,
|
||||
universal_newlines=True,
|
||||
text=True,
|
||||
)
|
||||
|
||||
for dependency_str in dependencies_output.stdout.rstrip().split("\n"):
|
||||
|
||||
Reference in New Issue
Block a user