summaryrefslogtreecommitdiff
path: root/chromium/build/util/is_python2.py
blob: 8f2f9e26345b1564cbcc4bf46b8ba0666eda603a (plain)
1
2
3
4
5
6
7
8
9
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Script for checking if we're running Python 2 or 3."""

import subprocess
import sys

print("true" if sys.version_info.major == 2 else "false")