From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 21585138206 for ; Fri, 11 Oct 2013 10:33:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 571F9E0A10; Fri, 11 Oct 2013 10:33:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AB812E0A03 for ; Fri, 11 Oct 2013 10:33:13 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B9BAF33EF86 for ; Fri, 11 Oct 2013 10:33:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 62ED1E5464 for ; Fri, 11 Oct 2013 10:33:11 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1381487235.cbf5e8657b654e2538b31db945b315ce89eb72bc.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/xattr-helper.py X-VCS-Directories: bin/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: cbf5e8657b654e2538b31db945b315ce89eb72bc X-VCS-Branch: master Date: Fri, 11 Oct 2013 10:33:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e253ddea-7d96-416b-a89e-e5e28a7b3940 X-Archives-Hash: d2153c8f7d8416e3e6080eb6d4ea29a5 commit: cbf5e8657b654e2538b31db945b315ce89eb72bc Author: Mike Frysinger gentoo org> AuthorDate: Fri Oct 11 10:27:15 2013 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Oct 11 10:27:15 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=cbf5e865 xattr-helper: standardize quoting style a bit --- bin/xattr-helper.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/xattr-helper.py b/bin/xattr-helper.py index 83ee32c..249ea87 100755 --- a/bin/xattr-helper.py +++ b/bin/xattr-helper.py @@ -74,7 +74,7 @@ def quote(s, quote_chars): result.append(octal_quote_byte(s[start:start+1])) pos = start + 1 - return b"".join(result) + return b''.join(result) def unquote(s): @@ -100,7 +100,7 @@ def unquote(s): except AttributeError: result.append(a.tostring()) - return b"".join(result) + return b''.join(result) def dump_xattrs(file_in, file_out): @@ -153,15 +153,15 @@ def main(argv): parser = ArgumentParser(description=description, usage=usage) actions = parser.add_argument_group('Actions') - actions.add_argument("--dump", - action="store_true", - help="Dump the values of all extended " - "attributes associated with null-separated" - " paths read from stdin.") - actions.add_argument("--restore", - action="store_true", - help="Restore extended attributes using" - " a dump read from stdin.") + actions.add_argument('--dump', + action='store_true', + help='Dump the values of all extended ' + 'attributes associated with null-separated' + ' paths read from stdin.') + actions.add_argument('--restore', + action='store_true', + help='Restore extended attributes using' + ' a dump read from stdin.') options, args = parser.parse_known_args(argv[1:]) @@ -188,11 +188,11 @@ def main(argv): restore_xattrs(file_in) else: - parser.error("available actions: --dump, --restore") + parser.error('missing action!') return os.EX_OK -if __name__ == "__main__": +if __name__ == '__main__': rval = main(sys.argv[:]) sys.exit(rval)