Skip to content

Commit 04e4d42

Browse files
committedApr 30, 2017
Rename os variable in bootstrap.py to avoid shadowing os module.
1 parent 06fb4d2 commit 04e4d42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/bootstrap/bootstrap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ def build_triple(self):
414414
# The goal here is to come up with the same triple as LLVM would,
415415
# at least for the subset of platforms we're willing to target.
416416
if ostype == 'Linux':
417-
os = subprocess.check_output(['uname', '-o']).strip().decode(default_encoding)
418-
if os == 'Android':
417+
os_from_sp = subprocess.check_output(['uname', '-o']).strip().decode(default_encoding)
418+
if os_from_sp == 'Android':
419419
ostype = 'linux-android'
420420
else:
421421
ostype = 'unknown-linux-gnu'

‎x.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# option. This file may not be copied, modified, or distributed
1010
# except according to those terms.
1111

12-
# This file is only a "symlink" to boostrap.py, all logic should go there.
12+
# This file is only a "symlink" to bootstrap.py, all logic should go there.
1313

1414
import os
1515
import sys

0 commit comments

Comments
 (0)
Please sign in to comment.