From: Zac Medico Date: Tue, 24 Aug 2010 18:42:30 +0000 (-0700) Subject: Use open() instead of file(), for python3. X-Git-Tag: v2.2_rc69~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=929b7578130a7cb036a1d5c704868a8e39dd35de;p=portage.git Use open() instead of file(), for python3. --- diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index bcd6b52c2..6d00270b1 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -223,7 +223,7 @@ class ResolverPlayground(object): raise ValueError("Unknown config file: '%s'" % config_file) file_name = os.path.join(user_config_dir, config_file) - f = file(file_name, "w") + f = open(file_name, "w") for line in lines: f.write("%s\n" % line) f.close() @@ -248,7 +248,7 @@ class ResolverPlayground(object): for sets_file, lines in sets.items(): file_name = os.path.join(set_config_dir, sets_file) - f = file(file_name, "w") + f = open(file_name, "w") for line in lines: f.write("%s\n" % line) f.close()