From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-633791-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 5F2471381F3
	for <garchives@archives.gentoo.org>; Tue,  8 Oct 2013 19:40:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4D9DAE0A63;
	Tue,  8 Oct 2013 19:40:03 +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 CCC78E0A63
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Oct 2013 19:40:02 +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 A51E733E312
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Oct 2013 19:40:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id 4D611E5308
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Oct 2013 19:40:00 +0000 (UTC)
From: "Mike Frysinger" <vapier@gentoo.org>
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" <vapier@gentoo.org>
Message-ID: <1381261170.773bae7524d97ea5e6e431dfe34d7f49362688bc.vapier@gentoo>
Subject: [gentoo-commits] proj/portage:master commit in: bin/
X-VCS-Repository: proj/portage
X-VCS-Files: bin/chpathtool.py
X-VCS-Directories: bin/
X-VCS-Committer: vapier
X-VCS-Committer-Name: Mike Frysinger
X-VCS-Revision: 773bae7524d97ea5e6e431dfe34d7f49362688bc
X-VCS-Branch: master
Date: Tue,  8 Oct 2013 19:40:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 5a2f5e2c-1969-4d6d-bae8-9116a335df0f
X-Archives-Hash: 6c43580a0a93402a847335d26b3567b0

commit:     773bae7524d97ea5e6e431dfe34d7f49362688bc
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  8 19:39:30 2013 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct  8 19:39:30 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=773bae75

chpathtool: standardize quote style

---
 bin/chpathtool.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/bin/chpathtool.py b/bin/chpathtool.py
index c35acd1..471582b 100755
--- a/bin/chpathtool.py
+++ b/bin/chpathtool.py
@@ -9,8 +9,8 @@ import sys
 
 from portage.util._argparse import ArgumentParser
 
-CONTENT_ENCODING = "utf_8"
-FS_ENCODING = "utf_8"
+CONTENT_ENCODING = 'utf_8'
+FS_ENCODING = 'utf_8'
 
 try:
 	import magic
@@ -44,7 +44,7 @@ class IsTextFile(object):
 		mime_type = self._m.file(filename)
 		if isinstance(mime_type, bytes):
 			mime_type = mime_type.decode('ascii', 'replace')
-		return mime_type.startswith("text/")
+		return mime_type.startswith('text/')
 
 	def _is_text_encoding(self, filename):
 		try:
@@ -67,7 +67,7 @@ def chpath_inplace(filename, is_text_file, old, new):
 		try:
 			orig_mode = stat.S_IMODE(os.lstat(filename).st_mode)
 		except OSError as e:
-			sys.stderr.write("%s: %s\n" % (e, filename))
+			sys.stderr.write('%s: %s\n' % (e, filename))
 			return
 		temp_mode = 0o200 | orig_mode
 		os.chmod(filename, temp_mode)
@@ -142,12 +142,12 @@ def chpath_inplace_symlink(filename, st, old, new):
 
 def main(argv):
 
-	usage = "%s [options] <location> <old> <new>" % (os.path.basename(argv[0],))
+	usage = '%s [options] <location> <old> <new>' % (os.path.basename(argv[0],))
 	parser = ArgumentParser(usage=usage)
 	options, args = parser.parse_known_args(argv[1:])
 
 	if len(args) != 3:
-		parser.error("3 args required, got %s" % (len(args),))
+		parser.error('3 args required, got %s' % (len(args),))
 
 	location, old, new = args
 
@@ -185,5 +185,5 @@ def main(argv):
 
 	return os.EX_OK
 
-if __name__ == "__main__":
+if __name__ == '__main__':
 	sys.exit(main(sys.argv))