threader: Use 'str' instead of non-existant 'string' function.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 7 Jul 2017 09:29:47 +0000 (10:29 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 7 Jul 2017 09:31:09 +0000 (10:31 +0100)
Strong typing FTW.

threader.py

index 22416e6..df1d28f 100755 (executable)
@@ -95,7 +95,7 @@ def process_patch(m, method, title, part, n):
     h.update(m['From'])
     h.update(m['To'])
     h.update(title)
     h.update(m['From'])
     h.update(m['To'])
     h.update(title)
-    h.update(string(n))
+    h.update(str(n))
     parent_id = h.hexdigest()
     thread_patch(m, method, parent_id, part, n)
 
     parent_id = h.hexdigest()
     thread_patch(m, method, parent_id, part, n)