Move to 2-space indent: tools. (#711)
Pure shortening of the indentation length, no actual code change.
diff --git a/tools/sl4a_shell.py b/tools/sl4a_shell.py
index b771417..efeb129 100755
--- a/tools/sl4a_shell.py
+++ b/tools/sl4a_shell.py
@@ -41,30 +41,30 @@
class Sl4aShell(jsonrpc_shell_base.JsonRpcShellBase):
- def _start_services(self, console_env):
- """Overrides superclass."""
- self._ad.services.register('sl4a', sl4a_service.Sl4aService)
- console_env['s'] = self._ad.services.sl4a
- console_env['sl4a'] = self._ad.sl4a
- console_env['ed'] = self._ad.ed
+ def _start_services(self, console_env):
+ """Overrides superclass."""
+ self._ad.services.register('sl4a', sl4a_service.Sl4aService)
+ console_env['s'] = self._ad.services.sl4a
+ console_env['sl4a'] = self._ad.sl4a
+ console_env['ed'] = self._ad.ed
- def _get_banner(self, serial):
- lines = [
- 'Connected to %s.' % serial, 'Call methods against:',
- ' ad (android_device.AndroidDevice)', ' sl4a or s (SL4A)',
- ' ed (EventDispatcher)'
- ]
- return '\n'.join(lines)
+ def _get_banner(self, serial):
+ lines = [
+ 'Connected to %s.' % serial, 'Call methods against:',
+ ' ad (android_device.AndroidDevice)', ' sl4a or s (SL4A)',
+ ' ed (EventDispatcher)'
+ ]
+ return '\n'.join(lines)
if __name__ == '__main__':
- parser = argparse.ArgumentParser(
- description='Interactive client for sl4a.')
- parser.add_argument(
- '-s',
- '--serial',
- help=
- 'Device serial to connect to (if more than one device is connected)')
- args = parser.parse_args()
- logging.basicConfig(level=logging.INFO)
- Sl4aShell().main(args.serial)
+ parser = argparse.ArgumentParser(
+ description='Interactive client for sl4a.')
+ parser.add_argument(
+ '-s',
+ '--serial',
+ help=
+ 'Device serial to connect to (if more than one device is connected)')
+ args = parser.parse_args()
+ logging.basicConfig(level=logging.INFO)
+ Sl4aShell().main(args.serial)