Add __repr__ method to File class#2550
Conversation
|
Do we want to keep using I doubt it's being used in logs so I'd rather go for a more modern standard maybe? |
|
I agree but this should be done for all formatted strings, right? Maybe using pyupgrade f-strings feature? We want to do other upgrades as well and consider adding pyupgrade as part of CI? |
On principle yes, but that's not what I asked because indeed a more general approach would be preferable
This and black code formatter has been debated but did not get attention at the time. Maybe @oprypin wants to do something on this part? if so, I'm still up for it. |
|
@oprypin I intend to merge this in two days |
Opened #2612 to replace most of them. |
I've found myself when developing plugins printing
File.src_path, a lot of times, so I've created the reproduction method based on the same defined inPageclass.