From 929b7578130a7cb036a1d5c704868a8e39dd35de Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 24 Aug 2010 11:42:30 -0700 Subject: [PATCH] Use open() instead of file(), for python3. --- pym/portage/tests/resolver/ResolverPlayground.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.26.2