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()
# 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
log_path = self._locate_failure_log(failed_pkg)
if log_path is not None:
try:
- log_file = open(log_path, 'rb')
+ log_file = open(log_path)
except IOError:
pass
# once, which may be expensive due to digging in child classes.
func = self.lineParser
for fn in RecursiveFileLoader(self.fname):
- f = open(fn, 'rb')
+ f = open(fn)
for line_num, line in enumerate(f):
func(line, line_num, data, errors)
return (data, errors)