@@ -170,7 +170,7 @@ def rust_pretty_printer_lookup_function(gdb_val):
170
170
#=------------------------------------------------------------------------------
171
171
# Pretty Printer Classes
172
172
#=------------------------------------------------------------------------------
173
- class RustStructPrinter :
173
+ class RustStructPrinter ( object ) :
174
174
def __init__ (self , val , omit_first_field , omit_type_name , is_tuple_like ):
175
175
self .__val = val
176
176
self .__omit_first_field = omit_first_field
@@ -205,7 +205,7 @@ def display_hint(self):
205
205
return ""
206
206
207
207
208
- class RustSlicePrinter :
208
+ class RustSlicePrinter ( object ) :
209
209
def __init__ (self , val ):
210
210
self .__val = val
211
211
@@ -227,7 +227,7 @@ def children(self):
227
227
yield (str (index ), (raw_ptr + index ).dereference ())
228
228
229
229
230
- class RustStringSlicePrinter :
230
+ class RustStringSlicePrinter ( object ) :
231
231
def __init__ (self , val ):
232
232
self .__val = val
233
233
@@ -237,7 +237,7 @@ def to_string(self):
237
237
return '"%s"' % raw_ptr .string (encoding = "utf-8" , length = length )
238
238
239
239
240
- class RustStdVecPrinter :
240
+ class RustStdVecPrinter ( object ) :
241
241
def __init__ (self , val ):
242
242
self .__val = val
243
243
@@ -257,7 +257,7 @@ def children(self):
257
257
yield (str (index ), (gdb_ptr + index ).dereference ())
258
258
259
259
260
- class RustStdStringPrinter :
260
+ class RustStdStringPrinter ( object ) :
261
261
def __init__ (self , val ):
262
262
self .__val = val
263
263
@@ -268,7 +268,7 @@ def to_string(self):
268
268
length = length )
269
269
270
270
271
- class RustCStyleVariantPrinter :
271
+ class RustCStyleVariantPrinter ( object ) :
272
272
def __init__ (self , val ):
273
273
assert val .type .get_dwarf_type_kind () == rustpp .DWARF_TYPE_CODE_ENUM
274
274
self .__val = val
@@ -277,7 +277,7 @@ def to_string(self):
277
277
return str (self .__val .get_wrapped_value ())
278
278
279
279
280
- class IdentityPrinter :
280
+ class IdentityPrinter ( object ) :
281
281
def __init__ (self , string ):
282
282
self .string = string
283
283
0 commit comments