From: Zac Medico Date: Tue, 11 Dec 2012 17:14:41 +0000 (-0800) Subject: xattr-helper.py: fix AssertionError string format X-Git-Tag: v2.2.0_alpha148~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e20cbf882cdbaae447d785ebadc980d29dfa2a4b;p=portage.git xattr-helper.py: fix AssertionError string format --- diff --git a/bin/xattr-helper.py b/bin/xattr-helper.py index b832f5ea7..e63f2cbbd 100755 --- a/bin/xattr-helper.py +++ b/bin/xattr-helper.py @@ -113,13 +113,13 @@ def restore_xattrs(file_in): parts = line.split(b'=', 1) if len(parts) == 2: if pathname is None: - raise AssertionError('line %d: missing pathname' % i + 1) + raise AssertionError('line %d: missing pathname' % (i + 1,)) attr = unquote(parts[0]) # strip trailing newline and quotes value = unquote(parts[1].rstrip(b'\n')[1:-1]) xattr.set(pathname, attr, value) elif line.strip(): - raise AssertionError("line %d: malformed entry" % i + 1) + raise AssertionError("line %d: malformed entry" % (i + 1,)) def main(argv):