add patch 1003 to fix python3 syntax
Jonas Smedegaard
3 years ago
0 | Description: fix python3 syntax | |
1 | Author: Jonas Smedegaard <dr@jones.dk> | |
2 | Bug-Debian: https://bugs.debian.org/803028 | |
3 | Last-Update: 2020-10-14 | |
4 | --- | |
5 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
6 | --- a/tools/ffdb.py | |
7 | +++ b/tools/ffdb.py | |
8 | @@ -580,7 +580,7 @@ | |
9 | print('Error! Failed to execute adb: ' + str(e)) | |
10 | print("Check that the device is connected properly, call 'adb devices' to list the detected devices.") | |
11 | sys.exit(1) | |
12 | - if retcode is not 0: | |
13 | + if retcode != 0: | |
14 | print('Error! Failed to connect to B2G device and executing adb failed with return code ' + retcode + '!') | |
15 | sys.exit(1) | |
16 | time.sleep(3) |