nhirata/crossbrowser_video_tool — comment on commit 409317df2b33af7eae9d245745c63bf4f9fbd887
File:  line 0
By ctalbert:

And in general, this can be done much simpler by simply keeping the self.device = serial in the constructor (__init) of your class, and since your _run_adb function is inside the same class, you can just have the _run_adb function test to see if self.device is set (if self.device...) and if so, include that in the Popen call to adb with the -s parameter. Then you don't need to change all the _run_adb calls and you don't need to change the _run_adb signature. Hope that makes sense.