Changeset 337


Ignore:
Timestamp:
Oct 31, 2008, 1:26:22 PM (11 years ago)
Author:
cito
Message:

Use open() instead of file() for opening files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/setup.py

    r299 r337  
    11#!/usr/bin/env python
    2 # $Id: setup.py,v 1.22 2006-05-31 00:04:01 cito Exp $
     2# $Id: setup.py,v 1.23 2008-10-31 17:26:22 cito Exp $
    33
    44"""Setup script for PyGreSQL version 3.8.1
     
    6464                if not f.endswith('.h'):
    6565                        continue
    66                 d = file(os.path.join(pg_include_dir_server, f)).read()
     66                d = open(os.path.join(pg_include_dir_server, f)).read()
    6767                if f == 'pg_config.h':
    6868                        d += '\n'
     
    7070                        d += '#undef USE_REPL_SNPRINTF\n'
    7171                        d += '#undef USE_SSL\n'
    72                 file(os.path.join('include', f), 'w').write(d)
     72                open(os.path.join('include', f), 'w').write(d)
    7373
    7474def rm_include():
Note: See TracChangeset for help on using the changeset viewer.