From f57dcb4b241c283fbe32694fa0d6729eaefe3e85 Mon Sep 17 00:00:00 2001 From: Henri Wiechers Date: Fri, 21 Jan 2011 13:23:26 +0200 Subject: setup.py: Replaced file(.) with open(.) as Python 3 doesn't have file(.) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9b87396..a8814b5 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ class md_install_scripts(install_scripts): script_path = os.path.join(script_dir, SCRIPT_NAME) bat_str = '@"%s" "%s" %%*' % (sys.executable, script_path) bat_path = os.path.join(self.install_dir, '%s.bat' %SCRIPT_NAME) - f = file(bat_path, 'w') + f = open(bat_path, 'w') f.write(bat_str) f.close() print ('Created: %s' % bat_path) -- cgit v1.2.3