You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor string[:len(substring)] == substring into string.startswith(substring).
It should be possible to do this automatically with a regex search and replace.
The text was updated successfully, but these errors were encountered:
dominichofer
changed the title
Refactoring to string.startswith
Refactoring to string.startswith(..)
Oct 5, 2023
Refactor
string[:len(substring)] == substring
intostring.startswith(substring)
.It should be possible to do this automatically with a regex search and replace.
The text was updated successfully, but these errors were encountered: