You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "yaruyng (via GitHub)" <gi...@apache.org> on 2024/11/29 02:05:58 UTC
[PR] refactor: convert .format() to f-strings [ambari]
yaruyng opened a new pull request, #3899:
URL: https://github.com/apache/ambari/pull/3899
## What changes were proposed in this pull request?
- Replace legacy `.format()` syntax with modern f-strings throughout the codebase
- Update string formatting to improve code readability
## Examples
Before:
message = "Hello, {}".format(name)
After:
message = f"Hello, {name}"
## How was this patch tested?
All existing tests pass
No functionality changes, only syntax improvements
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26243: refactor: convert .format() to f-strings [ambari]
Posted by "yaruyng (via GitHub)" <gi...@apache.org>.
yaruyng commented on PR #3899:
URL: https://github.com/apache/ambari/pull/3899#issuecomment-2507007766
@JiaLiangC Please help review this PR, mainly `.format()` syntax changes, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26243: refactor: convert .format() to f-strings [ambari]
Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #3899:
URL: https://github.com/apache/ambari/pull/3899
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org