mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
moveconfig: Drop check for old Python
Python 2 is not supported anymore and Python 3 has had subprocess.DEVNULL since version 3.3 which was released in 2012. Drop the unnecessary check. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
b2e83c6348
commit
478920dc58
1 changed files with 1 additions and 9 deletions
|
@ -91,14 +91,6 @@ SIZES = {
|
|||
}
|
||||
|
||||
### helper functions ###
|
||||
def get_devnull():
|
||||
"""Get the file object of '/dev/null' device."""
|
||||
try:
|
||||
devnull = subprocess.DEVNULL # py3k
|
||||
except AttributeError:
|
||||
devnull = open(os.devnull, 'wb')
|
||||
return devnull
|
||||
|
||||
def check_top_directory():
|
||||
"""Exit if we are not at the top of source directory."""
|
||||
for f in ('README', 'Licenses'):
|
||||
|
@ -1083,7 +1075,7 @@ class Slots:
|
|||
"""
|
||||
self.args = args
|
||||
self.slots = []
|
||||
devnull = get_devnull()
|
||||
devnull = subprocess.DEVNULL
|
||||
make_cmd = get_make_cmd()
|
||||
for i in range(args.jobs):
|
||||
self.slots.append(Slot(toolchains, configs, args, progress,
|
||||
|
|
Loading…
Reference in a new issue