diff --git a/patches b/patches index 3108668..43c346c 100755 --- a/patches +++ b/patches @@ -1,6 +1,7 @@ #!/usr/bin/env python # +from __future__ import print_function import getopt import string import sys @@ -10,8 +11,7 @@ def is_git_commit(token): if (len(token) != 40): return False; for c in token: - f = string.find(string.hexdigits, c); - if f == -1: + if c not in string.hexdigits: return False; return True; @@ -57,7 +57,7 @@ def parse_patch_file(file_name): ret = list(); for item in temp_list: - print item + str(",") + committer; + print(item + str(",") + committer); return ret;