Jan Kratochvil e32f96f
diff --git a/gdb/python/lib/gdb/command/pahole.py b/gdb/python/lib/gdb/command/pahole.py
Jan Kratochvil 213ecca
index e08eaf5..56c1737 100644
Jan Kratochvil e32f96f
--- a/gdb/python/lib/gdb/command/pahole.py
Jan Kratochvil e32f96f
+++ b/gdb/python/lib/gdb/command/pahole.py
Jan Kratochvil e32f96f
@@ -55,19 +55,19 @@ It prints the type and displays comments showing where holes are."""
Jan Kratochvil e32f96f
                 fieldsize = 8 * ftype.sizeof
Jan Kratochvil e32f96f
 
Jan Kratochvil e32f96f
             # TARGET_CHAR_BIT
Jan Kratochvil 213ecca
-            print (' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8)), end = "")
Jan Kratochvil 213ecca
+            print (' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8))),
Jan Kratochvil e32f96f
             bitpos = bitpos + fieldsize
Jan Kratochvil e32f96f
 
Jan Kratochvil e32f96f
             if ftype.code == gdb.TYPE_CODE_STRUCT:
Jan Kratochvil e32f96f
                 self.pahole (ftype, level + 1, field.name)
Jan Kratochvil e32f96f
             else:
Jan Kratochvil 213ecca
-                print (' ' * (2 + 2 * level), end = "")
Jan Kratochvil 213ecca
+                print (' ' * (2 + 2 * level)),
Jan Kratochvil e32f96f
                 print ('%s %s' % (str (ftype), field.name))
Jan Kratochvil e32f96f
 
Jan Kratochvil e32f96f
         if level == 0:
Jan Kratochvil e32f96f
             self.maybe_print_hole(bitpos, 8 * type.sizeof)
Jan Kratochvil e32f96f
 
Jan Kratochvil 213ecca
-        print (' ' * (14 + 2 * level), end = "")
Jan Kratochvil 213ecca
+        print (' ' * (14 + 2 * level)),
Jan Kratochvil e32f96f
         print ('} %s' % name)
Jan Kratochvil e32f96f
 
Jan Kratochvil e32f96f
     def invoke (self, arg, from_tty):
Jan Kratochvil e32f96f
@@ -75,7 +75,7 @@ It prints the type and displays comments showing where holes are."""
Jan Kratochvil e32f96f
         type = type.strip_typedefs ()
Jan Kratochvil e32f96f
         if type.code != gdb.TYPE_CODE_STRUCT:
Jan Kratochvil e32f96f
             raise (TypeError, '%s is not a struct type' % arg)
Jan Kratochvil 213ecca
-        print (' ' * 14, end = "")
Jan Kratochvil 213ecca
+        print (' ' * 14),
Jan Kratochvil e32f96f
         self.pahole (type, 0, '')
Jan Kratochvil e32f96f
 
Jan Kratochvil e32f96f
 Pahole()