I have to convert big legacy Python 2.7 codebase to Python 3.6 and I found that in Python3
datetime.datetime(2020, 05, 09)
does not support leading 0, it throws "invalid token" error.
But it works in Python 2.
What is the best way to make it work in Python 3.6?
Should I write/apply the global search/replace regexp across all codebase to remove the leading 0 in month and day? How this regexp will look like?
May be there is another way to migrate this code?