diff --git a/testing/mozbase/mozdevice/mozdevice/devicemanager.py b/testing/mozbase/mozdevice/mozdevice/devicemanager.py index 827c11cbd7e2..d697f12b75a0 100644 --- a/testing/mozbase/mozdevice/mozdevice/devicemanager.py +++ b/testing/mozbase/mozdevice/mozdevice/devicemanager.py @@ -158,7 +158,7 @@ class DeviceManager(object): cmdline = ["/system/bin/logcat", "-v", format, "-d"] + filterSpecs output = self.shellCheckOutput(cmdline, root=self._logcatNeedsRoot) - lines = output.replace('\r\n', '\n').splitlines(keepends=True) + lines = output.replace('\r\n', '\n').splitlines(True) for regex in filterOutRegexps: lines = [line for line in lines if not re.search(regex, line)]