summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-12 21:58:06 +0300
committerChristian Linhart <chris@demorecorder.com>2015-03-15 10:27:39 +0100
commit86ea6645d9e388112670cf88da1fe3b350953789 (patch)
treee73427bea5ec9768ca5efc93216541e353b256ef /src
parent70d32ce7d8ef3ce9490d9a51b189829c8bcdb5c4 (diff)
c_client.py: use print as a function for python3 compatibility
This works for all python>=2.6, which is what configure requires. Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'src')
-rw-r--r--src/c_client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_client.py b/src/c_client.py
index 2537f80..5af6d53 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+from __future__ import print_function
from functools import reduce
import getopt
import os
@@ -2665,8 +2666,7 @@ def _man_request(self, name, cookie_type, void, aux):
for field in b.type.fields:
_c_complex_field(self, field, space)
if b.type.has_name:
- print >> sys.stderr, 'ERROR: New unhandled documentation case'
- pass
+ print('ERROR: New unhandled documentation case\n', file=sys.stderr)
f.write('} \\fB%s\\fP;\n' % self.reply.c_type)
f.write('.fi\n')
@@ -2998,7 +2998,7 @@ def _man_event(self, name):
spacing = ' ' * (maxtypelen - len(field.c_field_type))
f.write('%s %s%s \\fI%s\\fP%s;\n' % (space, field.c_field_type, spacing, field.c_field_name, field.c_subscript))
else:
- print >> sys.stderr, 'ERROR: New unhandled documentation case'
+ print('ERROR: New unhandled documentation case', file=sys.stderr)
if not self.is_switch:
for field in struct_fields:
@@ -3011,7 +3011,7 @@ def _man_event(self, name):
for field in b.type.fields:
_c_complex_field(self, field, space)
if b.type.has_name:
- print >> sys.stderr, 'ERROR: New unhandled documentation case'
+ print('ERROR: New unhandled documentation case', file=sys.stderr)
pass
f.write('} \\fB%s\\fP;\n' % self.c_type)