Skip to content

Commit

Permalink
Run yapf to appease style/format check
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Jun 15, 2024
1 parent c6cc63e commit 638e46a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ambuild2/frontend/cpp/msvc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 638e46a

Please sign in to comment.