diff options
Diffstat (limited to 'security/nss/coreconf/check_cc_clang.py')
-rw-r--r-- | security/nss/coreconf/check_cc_clang.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/security/nss/coreconf/check_cc_clang.py b/security/nss/coreconf/check_cc_clang.py index 145ec0a72..4b9541195 100644 --- a/security/nss/coreconf/check_cc_clang.py +++ b/security/nss/coreconf/check_cc_clang.py @@ -6,15 +6,16 @@ import sys def main(): if sys.platform == 'win32': - print 0 + print(0) else: cc = os.environ.get('CC', 'cc') try: - cc_is_clang = 'clang' in subprocess.check_output([cc, '--version']) + cc_is_clang = 'clang' in subprocess.check_output( + [cc, '--version'], universal_newlines=True) except OSError: # We probably just don't have CC/cc. cc_is_clang = False - print int(cc_is_clang) + print(int(cc_is_clang)) if __name__ == '__main__': main() |