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 08:30:13 UTC

[PR] AMBARI-26243: refactor(ambari-server): convert .format() to f-strings [ambari]

yaruyng opened a new pull request, #3901:
URL: https://github.com/apache/ambari/pull/3901

   ## What changes were proposed in this pull request?
   
   - Replace legacy `.format()` syntax with modern f-strings throughout the codebase in ambari-server
   - 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
   
   Please review [Ambari Contributing Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request.


-- 
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(ambari-server): convert .format() to f-strings [ambari]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC commented on PR #3901:
URL: https://github.com/apache/ambari/pull/3901#issuecomment-2507404755

   @yaruyng  It is recommended to create an issue for each commit. If you don't have an issue account, you can request community members to help create one.


-- 
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-26244: convert .format() to f-strings for ambari-server [ambari]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #3901:
URL: https://github.com/apache/ambari/pull/3901


-- 
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(ambari-server): convert .format() to f-strings [ambari]

Posted by "yaruyng (via GitHub)" <gi...@apache.org>.
yaruyng commented on PR #3901:
URL: https://github.com/apache/ambari/pull/3901#issuecomment-2507322406

   @JiaLiangC Could you please review this PR? The main changes involve replacing legacy `.format()` syntax with f-strings across the codebase.
   


-- 
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