From 541f525a71fb9bbe97e1200dd03ac7eb9c8d7f2c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 05:52:24 +0000 Subject: For compatibility with python-3.0, open files in text mode where appropriate. (trunk r12642) svn path=/main/branches/2.1.6/; revision=12914 --- bin/repoman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 70a0587a6..7b5daf353 100755 --- a/bin/repoman +++ b/bin/repoman @@ -600,7 +600,7 @@ profiles={} valid_profile_types = frozenset(["dev", "exp", "stable"]) descfile=portdir+"/profiles/profiles.desc" if os.path.exists(descfile): - for i, x in enumerate(open(descfile, 'rb')): + for i, x in enumerate(open(descfile)): if x[0]=="#": continue arch=x.split() @@ -1444,7 +1444,7 @@ for x in scanlist: # Syntax Checks relative_path = os.path.join(x, y + ".ebuild") full_path = os.path.join(repodir, relative_path) - f = open(full_path, 'rb') + f = open(full_path) try: for check_name, e in run_checks(f, pkg): stats[check_name] += 1 -- cgit v1.2.3-1-g7c22