Prajwal-Surendra opened a new pull request, #6032:
URL: https://github.com/apache/hadoop/pull/6032
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
This pull request introduces a Python script that removes trailing spaces
from Java files within the specified directory.
### Changes made
- Added a Python script to recursively traverse the specified directory.
- For each Java file encountered, trailing spaces are removed using the
rstrip() method.
- The modified content is written to a temporary file.
- Finally, the temporary file is renamed to replace the original file.
### Usage
To use this script, execute it with the desired directory as the argument.
python Blanks-eol.py /path/to/your/directory
### How was this patch tested?
Thoroughly tested this script on my local environment to ensure it
successfully removes trailing spaces without introducing any new issues.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]