python: Fix multiline quotes in a single line
An example case,
```python
mem_side_port = RequestPort(
"This port sends requests and " "receives responses"
)
```
This is the residue of running the python formatter.
This is done by finding all tokens matching the regex `"\s"(?![.;"])`
and manually replacing them by empty strings.
Change-Id: Icf223bbe889e5fa5749a81ef77aa6e721f38b549
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66111
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -255,9 +255,7 @@ for param in sim_object._params.values():
|
||||
code('} else if (name == "${{param.name}}") {')
|
||||
code.indent()
|
||||
code("${{param.name}}.clear();")
|
||||
code(
|
||||
"for (auto i = values.begin(); " "ret && i != values.end(); i ++)"
|
||||
)
|
||||
code("for (auto i = values.begin(); ret && i != values.end(); i ++)")
|
||||
code("{")
|
||||
code.indent()
|
||||
code("${{param.ptype.cxx_type}} elem;")
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace gem5
|
||||
)
|
||||
|
||||
if enum.wrapper_is_struct:
|
||||
code("const char *${wrapper_name}::${name}Strings" "[Num_${name}] =")
|
||||
code("const char *${wrapper_name}::${name}Strings[Num_${name}] =")
|
||||
else:
|
||||
if enum.is_class:
|
||||
code(
|
||||
|
||||
Reference in New Issue
Block a user