From: Eitan Adler Date: Sun, 24 Dec 2017 18:34:06 +0000 (-0800) Subject: splitpatch: massage to function under python3 X-Git-Tag: v5.3.0~638 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/5503793edabd6071810cb6ebfbc7036406899ad4 splitpatch: massage to function under python3 --- diff --git a/tools/tools/splitpatch/splitpatch.py b/tools/tools/splitpatch/splitpatch.py index 58eb8ebbd5..d96c5da5df 100644 --- a/tools/tools/splitpatch/splitpatch.py +++ b/tools/tools/splitpatch/splitpatch.py @@ -48,7 +48,7 @@ def directory_save(filename, patch, suffix = None, root = None, forceful = False output_name = os.path.join(root, "%s%s" % (filename.replace('/',','), suffix)) if os.path.exists(output_name) and not forceful: - raise IOError, 'file exists' + raise IOError('file exists') f = open(output_name,"w") f.write(patch) f.close() @@ -74,7 +74,7 @@ def splitpatch(source, output = directory_save, quiet = False): filename = line.split()[1] if filename and not quiet: - print "Found patch for %s" % filename + print("Found patch for %s" % filename) buf.append(line) elif diff_line.get(line[0]):