From 1ce1c11a12cf13744352030dec3b04322e7f16d0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Feb 2009 10:24:06 +0000 Subject: For compatibility with python-3.0, open files in text mode where appropriate. svn path=/main/trunk/; revision=12642 --- bin/repoman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 29e8657ff..46d5f452e 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