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:
@@ -53,7 +53,7 @@ def config_ds3(mem_type: str, num_chnls: int) -> Tuple[str, str]:
|
||||
)
|
||||
elif os.path.isfile(input_file):
|
||||
raise Exception(
|
||||
"The configuration file '" + input_file + "' cannot " " be found."
|
||||
"The configuration file '" + input_file + "' cannot be found."
|
||||
)
|
||||
|
||||
output_file = "/tmp/" + mem_type + "_chnls" + str(num_chnls) + ".ini"
|
||||
|
||||
@@ -478,7 +478,7 @@ def cxxMethod(*args, **kwargs):
|
||||
args, varargs, keywords, defaults = inspect.getargspec(func)
|
||||
if varargs or keywords:
|
||||
raise ValueError(
|
||||
"Wrapped methods must not contain variable " "arguments"
|
||||
"Wrapped methods must not contain variable arguments"
|
||||
)
|
||||
|
||||
# Create tuples of (argument, default)
|
||||
@@ -571,7 +571,7 @@ class SimObjectCliWrapper(object):
|
||||
setattr(sim_object, key, val)
|
||||
else:
|
||||
raise SimObjectCliWrapperException(
|
||||
"tried to set or unsettable" "object parameter: " + key
|
||||
"tried to set or unsettableobject parameter: " + key
|
||||
)
|
||||
else:
|
||||
raise SimObjectCliWrapperException(
|
||||
|
||||
@@ -1457,7 +1457,7 @@ class MetaEnum(MetaParamValue):
|
||||
cls.map[val] = idx
|
||||
else:
|
||||
raise TypeError(
|
||||
"Enum-derived class must define " "attribute 'map' or 'vals'"
|
||||
"Enum-derived class must define attribute 'map' or 'vals'"
|
||||
)
|
||||
|
||||
if cls.is_class:
|
||||
|
||||
Reference in New Issue
Block a user