diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:52:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:52:24 +0000 |
commit | 541f525a71fb9bbe97e1200dd03ac7eb9c8d7f2c (patch) | |
tree | c52ab40fab3438d5906d467820bade40c1dadfe2 /bin | |
parent | fbcf09a5d4dc3c72af6767d221ce1c1c0375e686 (diff) | |
download | portage-541f525a71fb9bbe97e1200dd03ac7eb9c8d7f2c.tar.gz portage-541f525a71fb9bbe97e1200dd03ac7eb9c8d7f2c.tar.bz2 portage-541f525a71fb9bbe97e1200dd03ac7eb9c8d7f2c.zip |
For compatibility with python-3.0, open files in text mode where appropriate.
(trunk r12642)
svn path=/main/branches/2.1.6/; revision=12914
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 2 insertions, 2 deletions
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 |