pylint: simplify PYLINTRC setup
The os.path.isfile(RC_FILE) check isn't necessary because RC_FILE always exists -- it's checking for a static file in depot_tools. os.environ.setdefault('PYLINTRC',...) is the same thing as checking 'PYLINTRC' in os.environ first. Use that to simplify and drop the if entirely. Change-Id: Ib1fb8323c9bceebc5b22484988e9794586aa5e9a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6150451 Auto-Submit: Mike Frysinger <vapier@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>changes/51/6150451/2
parent
93954a51a1
commit
1dd73cd467
Loading…
Reference in New Issue