Index: build/android/screenshot.py |
diff --git a/build/android/screenshot.py b/build/android/screenshot.py |
index 902e06808ce056f72ba3491d1f758d2c032de4c3..b03979663633df155d0ef72578031133f81f3487 100755 |
--- a/build/android/screenshot.py |
+++ b/build/android/screenshot.py |
@@ -75,9 +75,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: |