1 --- src/wisent-0.6/py-compile.orig 2010-05-27 01:08:47.878401675 +0300
2 +++ src/wisent-0.6/py-compile 2010-05-27 01:34:23.561563950 +0300
7 -print 'Byte-compiling python modules...'
8 -for file in string.split(files):
9 +print('Byte-compiling python modules...')
10 +for file in files.split():
13 if not os.path.exists(filepath) or not (len(filepath) >= 3
14 and filepath[-3:] == '.py'):
18 + print(file, end=' ')
20 py_compile.compile(filepath, filepath + 'c', path)
24 # this will fail for python < 1.5, but that doesn't matter ...
26 import sys, os, string, py_compile
29 -print 'Byte-compiling python modules (optimized versions) ...'
30 -for file in string.split(files):
31 +print('Byte-compiling python modules (optimized versions) ...')
32 +for file in files.split():
35 if not os.path.exists(filepath) or not (len(filepath) >= 3
36 and filepath[-3:] == '.py'):
40 + print(file, end=' ')
42 py_compile.compile(filepath, filepath + 'o', path)
43 -print" 2>/dev/null || :
44 +print()" 2>/dev/null || :