Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions patches
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
#

from __future__ import print_function
import getopt
import string
import sys
Expand All @@ -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;
Expand Down Expand Up @@ -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;

Expand Down