summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-11 09:14:41 -0800
committerZac Medico <zmedico@gentoo.org>2012-12-11 09:14:41 -0800
commite20cbf882cdbaae447d785ebadc980d29dfa2a4b (patch)
tree97776ba0446f897a6699775fdc04b38da7f1b4ac /bin
parent4cab89345f8c236cdc91f596b5168763f6051ab2 (diff)
downloadportage-e20cbf882cdbaae447d785ebadc980d29dfa2a4b.tar.gz
portage-e20cbf882cdbaae447d785ebadc980d29dfa2a4b.tar.bz2
portage-e20cbf882cdbaae447d785ebadc980d29dfa2a4b.zip
xattr-helper.py: fix AssertionError string format
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xattr-helper.py4
1 files changed, 2 insertions, 2 deletions
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):