Ejemplo n.º 1
0
 def newline_separator(self):
     output = adb_command(self.device, "shell '(ls); echo \"\n$?\"'")
     if output.endswith('\r\n'):
         return '\r\n'
     elif output.endswith('\n'):
         return '\n'
     else:
         raise DevlibError("Unknown line ending")
Ejemplo n.º 2
0
 def newline_separator(self):
     output = adb_command(self.device,
                          "shell '({}); echo \"\n$?\"'".format(self.ls_command), adb_server=self.adb_server)
     if output.endswith('\r\n'):
         return '\r\n'
     elif output.endswith('\n'):
         return '\n'
     else:
         raise DevlibError("Unknown line ending")