Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: tools/telemetry/telemetry/internal/platform/profiler/monsoon.py

Issue 1458083003: [Telemetry + tools/perf] Modify the pylint disable message to use symbolic name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/internal/platform/profiler/monsoon.py
diff --git a/tools/telemetry/telemetry/internal/platform/profiler/monsoon.py b/tools/telemetry/telemetry/internal/platform/profiler/monsoon.py
index fdc0826c994225fdca464fa23aea61c049e3b0d6..72425f7f688857946b8f93f5b25393c649cdb08d 100644
--- a/tools/telemetry/telemetry/internal/platform/profiler/monsoon.py
+++ b/tools/telemetry/telemetry/internal/platform/profiler/monsoon.py
@@ -62,7 +62,7 @@ class Monsoon(object):
self._tempfile = open(tmpname, 'w')
try: # Use a lockfile to ensure exclusive access.
# Put the import in here to avoid doing it on unsupported platforms.
- import fcntl # pylint: disable=F0401
+ import fcntl # pylint: disable=import-error
fcntl.lockf(self._tempfile, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
logging.error('device %s is in use', port)

Powered by Google App Engine
This is Rietveld 408576698