Chromium Code Reviews| Index: build/android/pylib/device/device_utils.py |
| diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py |
| index aa42aff3cdb1f72ae029ee53a93cc49a4b0f1694..32b1dbedd042ed28112627a0702649e63796c04e 100644 |
| --- a/build/android/pylib/device/device_utils.py |
| +++ b/build/android/pylib/device/device_utils.py |
| @@ -20,7 +20,7 @@ class DeviceUtils(object): |
| def __init__(self, device): |
| self.old_interface = None |
| - if isinstance(device, str): |
| + if isinstance(device, str) or isinstance(device, unicode): |
|
craigdh
2014/04/11 17:44:32
Don't do this. You can just do a single isinstance
David Trainor- moved to gerrit
2014/04/11 18:34:11
oh even better thanks!
|
| self.old_interface = pylib.android_commands.AndroidCommands(device) |
| elif isinstance(device, adb_wrapper.AdbWrapper): |
| self.old_interface = pylib.android_commands.AndroidCommands(str(device)) |