Conversation
|
Could you please undo the black run on the script so that it's easier to see what really changed ? |
|
Also: I think it's better to open the file in text mode using 'utf-8' as encoding. That way you don't need the .encode() calls. |
… of the changes are unnecessary. Revert changes made by black.
This is a much more elegant solution than the one that I made (which was largely written by putting error messages into an LLM 😆 ) While there are no automated tests, I copied the state of In short: the last 3 entries in the file are not in alphabetical order. Running the code in this PR puts them in alphabetical order (which is what I gather is the intention of the file). |
|
Thanks, @arilamstein |
|
I've created PR #592 so we run |
Update
sort-ini.pyto work with Python 3. Also runblackon script.Note that the README specifically instructs people to run this script. So updating it to work with Python 3 seems like a good idea.
As discussed in PR #590