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