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

Unified Diff: build/android/devil/android/decorators.py

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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: build/android/devil/android/decorators.py
diff --git a/build/android/devil/android/decorators.py b/build/android/devil/android/decorators.py
index 39bd165c2a0db175fb2a034c52eb68a23dbf34e3..6dd72b0b0f59f2ba47429bcf6bb7d79c494d74de 100644
--- a/build/android/devil/android/decorators.py
+++ b/build/android/devil/android/decorators.py
@@ -7,7 +7,6 @@ Function/method decorators that provide timeout and retry logic.
"""
import functools
-import os
import sys
import threading
@@ -15,7 +14,6 @@ from devil.android import device_errors
from devil.utils import cmd_helper
from devil.utils import reraiser_thread
from devil.utils import timeout_retry
-from pylib import constants
DEFAULT_TIMEOUT_ATTR = '_default_timeout'
DEFAULT_RETRIES_ATTR = '_default_retries'
@@ -136,6 +134,7 @@ def WithTimeoutAndRetriesFromInstance(
The actual decorator.
"""
def decorator(f):
+ # pylint: disable=unused-argument
perezju 2015/09/04 09:01:53 We are needing to do this quite often, and there s
jbudorick 2015/09/04 16:51:56 done
def get_timeout(inst, *_args, **kwargs):
return kwargs.get('timeout', getattr(inst, default_timeout_name))
def get_retries(inst, *_args, **kwargs):

Powered by Google App Engine
This is Rietveld 408576698