Skip to content

Commit 2bff472

Browse files
jnewberyken2812221
authored andcommitted
[contrib] convert test-security-check to python3
1 parent 958bf40 commit 2bff472

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/devtools/test-security-check.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright (c) 2015-2017 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
'''
66
Test script for security-check.py
77
'''
8-
from __future__ import division,print_function
98
import subprocess
109
import unittest
1110

@@ -22,7 +21,7 @@ def write_testcode(filename):
2221

2322
def call_security_check(cc, source, executable, options):
2423
subprocess.check_call([cc,source,'-o',executable] + options)
25-
p = subprocess.Popen(['./security-check.py',executable], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
24+
p = subprocess.Popen(['./security-check.py',executable], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, universal_newlines=True)
2625
(stdout, stderr) = p.communicate()
2726
return (p.returncode, stdout.rstrip())
2827

0 commit comments

Comments
 (0)