python: Import reduce function in FileSystemConfig
authorJason Lowe-Power <jason@lowepower.com>
Thu, 6 Aug 2020 23:43:08 +0000 (16:43 -0700)
committerJason Lowe-Power <power.jg@gmail.com>
Tue, 1 Sep 2020 00:14:08 +0000 (00:14 +0000)
Not sure if this is required due to python3 or something else, but I got
the error "NameError: name 'reduce' is not defined". This fixes that
error.

Change-Id: I2dd71674306abcad1a90311664b18b9eee29b9ac
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32374
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/common/FileSystemConfig.py

index ec27656e05537863e3c29261ddb7ef0f16ed8447..29041fdcd290dd685d891712f644390038a528a9 100644 (file)
@@ -42,6 +42,7 @@ import m5
 from m5.objects import *
 from m5.util.convert import *
 
+from functools import reduce
 import operator, os, platform, getpass
 from os import mkdir, makedirs, getpid, listdir, stat, access
 from pwd import getpwuid