From c9d3d93d28f2a1f839770672f5846115d8d0e3c3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 28 Aug 2013 19:30:12 +0200 Subject: Use open() instead of file() since the later doesn't exist in python3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 23bde20..fb6f624 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def fetch_version(): except OSError: pass # Failing is fine, we just can't print the version then - with file('gbp/version.py', 'w') as f: + with open('gbp/version.py', 'w') as f: f.write('"The current gbp version number"\n') f.write('gbp_version="%s"\n' % version) -- cgit v1.2.3