diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-19 10:24:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-19 10:24:06 +0000 |
commit | 1ce1c11a12cf13744352030dec3b04322e7f16d0 (patch) | |
tree | 6441c202863f085e050727a64a3823128257dc0f /bin/repoman | |
parent | 698cfe955f2499d6f2ad0e32e32bb150cd4283ba (diff) | |
download | portage-1ce1c11a12cf13744352030dec3b04322e7f16d0.tar.gz portage-1ce1c11a12cf13744352030dec3b04322e7f16d0.tar.bz2 portage-1ce1c11a12cf13744352030dec3b04322e7f16d0.zip |
For compatibility with python-3.0, open files in text mode where appropriate.
svn path=/main/trunk/; revision=12642
Diffstat (limited to 'bin/repoman')
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 2 insertions, 2 deletions
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 |