misc: Run pre-commit run --all-files
This ensures `isort` is applied to all files in the repo. Change-Id: Ib7ced1c924ef1639542bf0d1a01c5737f6ba43e9
This commit is contained in:
@@ -36,18 +36,31 @@
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
import getpass
|
||||
import operator
|
||||
import os
|
||||
import platform
|
||||
from functools import reduce
|
||||
from os import (
|
||||
access,
|
||||
getpid,
|
||||
listdir,
|
||||
makedirs,
|
||||
mkdir,
|
||||
stat,
|
||||
)
|
||||
from os.path import isdir
|
||||
from os.path import join as joinpath
|
||||
from pwd import getpwuid
|
||||
from shutil import (
|
||||
copyfile,
|
||||
rmtree,
|
||||
)
|
||||
|
||||
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
|
||||
from os.path import join as joinpath
|
||||
from os.path import isdir
|
||||
from shutil import rmtree, copyfile
|
||||
|
||||
|
||||
def hex_mask(terms):
|
||||
dec_mask = reduce(operator.or_, [2**i for i in terms], 0)
|
||||
|
||||
Reference in New Issue
Block a user