summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/fixheader.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
commit6afaeb757af0dbd8508a0f2352ade61e41bec84c (patch)
treef1b31bc7138b17ff39791bbb45aa81583c3b6e46 /Tools/scripts/fixheader.py
parente5d0e8431f929cad2da77b63fe1b7dc0ff21a428 (diff)
downloadcpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.zip
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.gz
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.bz2
Convert print statements to function calls in Tools/.
Diffstat (limited to 'Tools/scripts/fixheader.py')
-rwxr-xr-xTools/scripts/fixheader.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Tools/scripts/fixheader.py b/Tools/scripts/fixheader.py
index 8e8ac59..7231829 100755
--- a/Tools/scripts/fixheader.py
+++ b/Tools/scripts/fixheader.py
@@ -32,18 +32,18 @@ def process(filename):
magic = magic + c.upper()
else: magic = magic + '_'
sys.stdout = f
- print '#ifndef', magic
- print '#define', magic
- print '#ifdef __cplusplus'
- print 'extern "C" {'
- print '#endif'
- print
+ print('#ifndef', magic)
+ print('#define', magic)
+ print('#ifdef __cplusplus')
+ print('extern "C" {')
+ print('#endif')
+ print()
f.write(data)
- print
- print '#ifdef __cplusplus'
- print '}'
- print '#endif'
- print '#endif /*', '!'+magic, '*/'
+ print()
+ print('#ifdef __cplusplus')
+ print('}')
+ print('#endif')
+ print('#endif /*', '!'+magic, '*/')
if __name__ == '__main__':
main()