pprintpp icon indicating copy to clipboard operation
pprintpp copied to clipboard

fix: remove "U" move from open(), now universal newline is the default

Open sandrotosi opened this issue 3 years ago • 9 comments

In python2.7 you needed to specify mode='U' to get universal newline: https://docs.python.org/2.7/library/functions.html#open:~:text=universal%20newlines%20support%3B-,supplying%20%27U%27,-opens%20the%20file

in python3 this is now the default: https://docs.python.org/3/library/functions.html#open:~:text=if%20newline%20is%20None%2C%20universal%20newlines%20mode%20is%20enabled

but if left there, it now triggers an error with 3.11, so let's remove it

sandrotosi avatar Dec 24 '22 08:12 sandrotosi

@wolever can you merge this? Otherwise we will have troubles using the pkg with Python 3.11.

CarliJoy avatar Jan 18 '23 13:01 CarliJoy

@wolever can you merge this? Otherwise we will have troubles using the pkg with Python 3.11.

Yes, pprintpp doesn't work with python 3.11. Please merge and release !

thebaptiste avatar Mar 14 '23 09:03 thebaptiste

ping @wolever

MatthewZMD avatar Mar 04 '24 21:03 MatthewZMD