depot_tools: Replace pylint error numbers with symbolic names.
This affects a bunch of files, but only changes comments,
and shouldn't make any difference to behavior.
The purpose is to slightly improve readability of pylint
disable comments.
Change-Id: Ic6cd0f8de792b31d91c6125f6da2616450b30f11
Reviewed-on: https://chromium-review.googlesource.com/420412
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Quinten Yearsley <qyearsley@chromium.org>
diff --git a/gclient_utils.py b/gclient_utils.py
index deea47e..c21a3fd 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -1169,9 +1169,9 @@
try:
import multiprocessing
return multiprocessing.cpu_count()
- except NotImplementedError: # pylint: disable=W0702
+ except NotImplementedError: # pylint: disable=bare-except
# (UNIX) Query 'os.sysconf'.
- # pylint: disable=E1101
+ # pylint: disable=no-member
if hasattr(os, 'sysconf') and 'SC_NPROCESSORS_ONLN' in os.sysconf_names:
return int(os.sysconf('SC_NPROCESSORS_ONLN'))