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

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

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix appurify_sanitized import-errors 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
« no previous file with comments | « build/android/devil/android/apk_helper.py ('k') | build/android/devil/android/battery_utils_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/battery_utils.py
diff --git a/build/android/devil/android/battery_utils.py b/build/android/devil/android/battery_utils.py
index 3d27db2652d28a177b317cf1612d025467046406..5d5f19de2d5e4f2ac0bb083340d2b2c316be96db 100644
--- a/build/android/devil/android/battery_utils.py
+++ b/build/android/devil/android/battery_utils.py
@@ -16,7 +16,6 @@ from devil.android import device_errors
from devil.android import device_utils
from devil.android.sdk import version_codes
from devil.utils import timeout_retry
-from pylib import constants
_DEFAULT_TIMEOUT = 30
_DEFAULT_RETRIES = 3
@@ -424,7 +423,7 @@ class BatteryUtils(object):
Raises:
device_errors.DeviceVersionError: If device is not L or higher.
"""
- if (self._device.build_version_sdk < version_codes.LOLLIPOP):
+ if self._device.build_version_sdk < version_codes.LOLLIPOP:
raise device_errors.DeviceVersionError('Device must be L or higher.')
try:
self.DisableBatteryUpdates(timeout=timeout, retries=retries)
@@ -583,7 +582,7 @@ class BatteryUtils(object):
device_errors.DeviceVersionError: If power clearing is supported,
but fails.
"""
- if (self._device.build_version_sdk < version_codes.LOLLIPOP):
+ if self._device.build_version_sdk < version_codes.LOLLIPOP:
logging.warning('Dumpsys power data only available on 5.0 and above. '
'Cannot clear power data.')
return False
« no previous file with comments | « build/android/devil/android/apk_helper.py ('k') | build/android/devil/android/battery_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698