| Index: gdb/python/lib/gdb/printing.py
|
| diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
|
| index b4e798da231177e55de01ac32f4f018052d79991..785a407c1be8337cfd9e5a2e2e27fbf2c3d609be 100644
|
| --- a/gdb/python/lib/gdb/printing.py
|
| +++ b/gdb/python/lib/gdb/printing.py
|
| @@ -1,5 +1,5 @@
|
| # Pretty-printer utilities.
|
| -# Copyright (C) 2010-2012 Free Software Foundation, Inc.
|
| +# Copyright (C) 2010-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -19,7 +19,12 @@
|
| import gdb
|
| import gdb.types
|
| import re
|
| +import sys
|
|
|
| +if sys.version_info[0] > 2:
|
| + # Python 3 removed basestring and long
|
| + basestring = str
|
| + long = int
|
|
|
| class PrettyPrinter(object):
|
| """A basic pretty-printer.
|
|
|