aboutsummaryrefslogtreecommitdiff
path: root/qemu_mode/patches/__init__.py.diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-28 13:51:35 +0100
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:06 +0200
commit1950f09bde8d4bd708299afad094afd91f6dc242 (patch)
tree03270c9b1644e0197e2a6a4443acc534a4f78052 /qemu_mode/patches/__init__.py.diff
parente41b03eb30cd10fbf2d34ca018594ac7dadd4dfa (diff)
downloadafl++-1950f09bde8d4bd708299afad094afd91f6dc242.tar.gz
qemu_mode: fix more compiler warnings
Diffstat (limited to 'qemu_mode/patches/__init__.py.diff')
-rw-r--r--qemu_mode/patches/__init__.py.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu_mode/patches/__init__.py.diff b/qemu_mode/patches/__init__.py.diff
new file mode 100644
index 00000000..7e189b99
--- /dev/null
+++ b/qemu_mode/patches/__init__.py.diff
@@ -0,0 +1,17 @@
+--- a/scripts/tracetool/__init__.py 2020-03-28 13:42:21.937700726 +0100
++++ b/scripts/tracetool/__init__.py 2020-03-28 13:41:50.991034257 +0100
+@@ -447,12 +447,12 @@
+ import tracetool
+
+ format = str(format)
+- if len(format) is 0:
++ if len(format) == 0:
+ raise TracetoolError("format not set")
+ if not tracetool.format.exists(format):
+ raise TracetoolError("unknown format: %s" % format)
+
+- if len(backends) is 0:
++ if len(backends) == 0:
+ raise TracetoolError("no backends specified")
+ for backend in backends:
+ if not tracetool.backend.exists(backend):