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 |