Update of /usr/cvs/Public/pygresql/module
In directory druid.net:/tmp/cvs-serv29093
Modified Files:
setup.py
Log Message:
Use open() instead of file() for opening files.
To see the diffs for this commit:
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/module/setup.py.diff?r1=1.22&r2=1.23
Index: setup.py
===================================================================
RCS file: /usr/cvs/Public/pygresql/module/setup.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- setup.py 31 May 2006 00:04:01 -0000 1.22
+++ setup.py 31 Oct 2008 17:26:22 -0000 1.23
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# $Id: setup.py,v 1.22 2006/05/31 00:04:01 cito Exp $
+# $Id: setup.py,v 1.23 2008/10/31 17:26:22 cito Exp $
"""Setup script for PyGreSQL version 3.8.1
@@ -63,13 +63,13 @@
for f in os.listdir(pg_include_dir_server):
if not f.endswith('.h'):
continue
- d = file(os.path.join(pg_include_dir_server, f)).read()
+ d = open(os.path.join(pg_include_dir_server, f)).read()
if f == 'pg_config.h':
d += '\n'
d += '#undef ENABLE_NLS\n'
d += '#undef USE_REPL_SNPRINTF\n'
d += '#undef USE_SSL\n'
- file(os.path.join('include', f), 'w').write(d)
+ open(os.path.join('include', f), 'w').write(d)
def rm_include():
"""Remove the temporary local include directory."""
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql