python: Apply Black formatter to Python files
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>
This commit is contained in:
committed by
Giacomo Travaglini
parent
1cfaa8da83
commit
787204c92d
@@ -29,13 +29,16 @@ from _m5.systemc import sc_main
|
||||
from _m5.systemc import sc_time
|
||||
from _m5.systemc import sc_main_result_code, sc_main_result_str
|
||||
|
||||
|
||||
class ScMainResult(object):
|
||||
def __init__(self, code, message):
|
||||
self.code = code
|
||||
self.message = message
|
||||
|
||||
|
||||
def sc_main_result():
|
||||
'''Retrieve and return the results of running sc_main'''
|
||||
"""Retrieve and return the results of running sc_main"""
|
||||
return ScMainResult(sc_main_result_code(), sc_main_result_str())
|
||||
|
||||
__all__ = [ 'sc_main', 'sc_time', 'sc_main_result' ]
|
||||
|
||||
__all__ = ["sc_main", "sc_time", "sc_main_result"]
|
||||
|
||||
@@ -27,7 +27,9 @@ import _m5.systemc
|
||||
|
||||
from _m5.systemc import tlm_global_quantum
|
||||
|
||||
|
||||
def tlm_global_quantum_instance():
|
||||
return tlm_global_quantum.instance()
|
||||
|
||||
__all__ = [ 'tlm_global_quantum_instance' ]
|
||||
|
||||
__all__ = ["tlm_global_quantum_instance"]
|
||||
|
||||
Reference in New Issue
Block a user