input_playback: fix some formatting am: 5d6cb823ca am: 6f9f6abc0e am: f7b98ba223 am: a8c83987f5
Original change: undetermined
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id660b0cb60eb7e9bd7081cb4b3b02b0fea11f973
diff --git a/client/cros/input_playback/input_playback.py b/client/cros/input_playback/input_playback.py
index 139b1c5..98c9f98 100644
--- a/client/cros/input_playback/input_playback.py
+++ b/client/cros/input_playback/input_playback.py
@@ -264,11 +264,11 @@
"""
input_names = glob.glob(os.path.join(device_dir, 'input', 'input*'))
for input_name in input_names:
- name_path = os.path.join(input_name, 'name')
- if not os.path.exists(name_path):
- continue
- if name == self._get_contents_of_file(name_path):
- return os.path.basename(input_name)
+ name_path = os.path.join(input_name, 'name')
+ if not os.path.exists(name_path):
+ continue
+ if name == self._get_contents_of_file(name_path):
+ return os.path.basename(input_name)
# Raise if name could not be matched.
logging.error('Input names found(%s): %s', device_dir, input_names)
raise error.TestError('Could not match input* to this device!')