mangling shebang in /usr/sbin/semanage from #! /usr/bin/python3 -Es to #!/usr/bin/python3 -Es The space might be weird, but it's harmless. Mangling it harmless as well. Not mangling it is also harmless. The information in the log is however might be disturbing. I will propose a change that will remove the log line (and also will or will not mangle whitespace only, whatever will be easier).
All modifications bear some risk of breaking something and/or other unexpected behavior so any modification need to be logged. Me thinks scripts should only touch files if they absolutely must, cosmetics are better left for humans.
https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/21
Yep, the change disables the mangling if only whitespace would be changed.
On a related note, bug 1547805 is an excellent example why all modifications need to be logged...