diff --git a/.github/workflows/yapf.yml b/.github/workflows/yapf.yml index 845c1e87..6c3e2d7f 100644 --- a/.github/workflows/yapf.yml +++ b/.github/workflows/yapf.yml @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.12] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies diff --git a/ambuild2/frontend/cpp/msvc_utils.py b/ambuild2/frontend/cpp/msvc_utils.py index ab94bad8..b28a568b 100644 --- a/ambuild2/frontend/cpp/msvc_utils.py +++ b/ambuild2/frontend/cpp/msvc_utils.py @@ -255,12 +255,12 @@ def DetectInclusionPattern(text): def GetCodePage(): try: - stdout = subprocess.run( - "chcp", shell=True, - stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, - stdin=subprocess.DEVNULL - ).stdout - codec = 'cp'+re.match(b".+: (\d+)\s*$", stdout).group(1).decode() + stdout = subprocess.run("chcp", + shell = True, + stdout = subprocess.PIPE, + stderr = subprocess.DEVNULL, + stdin = subprocess.DEVNULL).stdout + codec = 'cp' + re.match(b".+: (\d+)\s*$", stdout).group(1).decode() codecs.lookup(codec) return codec except LookupError: