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
* Use `.startswith(..)` in place of the unrolled versions of the
equivalent functionality.
* Use `if foo:` and `if not foo:` instead of `if len(foo) != 0:`
and `if len(foo) == 0:`. The former set of patterns is more
performant and it protects against `foo` potentially not being
an iterable object, or an object that doesn't implement
`.__len__(..)`.
* Change the mode of the script to 0755 so it's executable out of
the box.
Signed-of-by: Enji Cooper <[email protected]>
0 commit comments