The command executed was `black src configs tests util`. Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
16 lines
422 B
Python
16 lines
422 B
Python
# This upgrader renames section "Globals" as "root.globals".
|
|
def upgrader(cpt):
|
|
import re
|
|
|
|
for sec in cpt.sections():
|
|
if re.match("Globals", sec):
|
|
# rename the section
|
|
items = cpt.items(sec)
|
|
cpt.add_section("root.globals")
|
|
for item in items:
|
|
cpt.set("root.globals", item[0], item[1])
|
|
cpt.remove_section(sec)
|
|
|
|
|
|
legacy_version = 16
|