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

Unified Diff: build/android/screenshot.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/pylintrc ('k') | build/android/symbolize.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/screenshot.py
diff --git a/build/android/screenshot.py b/build/android/screenshot.py
index b03979663633df155d0ef72578031133f81f3487..a0a52afe7b0f3c9611323a0b9297be44f8ebbfe7 100755
--- a/build/android/screenshot.py
+++ b/build/android/screenshot.py
@@ -27,7 +27,8 @@ def _CaptureScreenshot(device, host_file):
def _CaptureVideo(device, host_file, options):
- size = tuple(map(int, options.size.split('x'))) if options.size else None
+ size = (tuple(int(i) for i in options.size.split('x')) if options.size
+ else None)
recorder = screenshot.VideoRecorder(device,
megabits_per_second=options.bitrate,
size=size,
« no previous file with comments | « build/android/pylintrc ('k') | build/android/symbolize.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698