Index: build/android/screenshot.py |
diff --git a/build/android/screenshot.py b/build/android/screenshot.py |
index 839fb55d91eee07dae45da34686b8e72d68a5e2c..a0a52afe7b0f3c9611323a0b9297be44f8ebbfe7 100755 |
--- a/build/android/screenshot.py |
+++ b/build/android/screenshot.py |
@@ -76,9 +76,10 @@ |
if options.verbose: |
logging.getLogger().setLevel(logging.DEBUG) |
- blacklist = (device_blacklist.Blacklist(options.blacklist_file) |
- if options.blacklist_file |
- else None) |
+ if options.blacklist_file: |
+ blacklist = device_blacklist.Blacklist(options.blacklist_file) |
+ else: |
+ blacklist = None |
devices = device_utils.DeviceUtils.HealthyDevices(blacklist) |
if options.device: |