Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make some minor tweaks to
mysqldump_to_csv.py
* 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]>
- Loading branch information