mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 12:31:39 +08:00
[Tech Debt] Use f-string for python/ray/*.py (#10268)
* In progress. * Done with critical path. * Modified cluster_utils.py and log_monitor.py * Addressed code review.
This commit is contained in:
@@ -437,7 +437,7 @@ class SerializationContext:
|
||||
except Exception:
|
||||
raise ValueError(
|
||||
"Failed to use pickle in generating a unique id"
|
||||
"for '{}'. Provide a unique class_id.".format(cls))
|
||||
f"for '{cls}'. Provide a unique class_id.")
|
||||
else:
|
||||
# In this case, the class ID only needs to be meaningful on
|
||||
# this worker and not across workers.
|
||||
|
||||
Reference in New Issue
Block a user