Skip to content

Commit

Permalink
setup.py: Replaced file(.) with open(.) as Python 3 doesn't have file(.)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wiechers committed Jan 21, 2011
1 parent 708e2cb commit f57dcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run(self):
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)
Expand Down

0 comments on commit f57dcb4

Please sign in to comment.