diff options
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/gdb/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 2b5d8be..2ad22e2 100644 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -116,7 +116,7 @@ else: try: os_fsencode = os.fsencode -except ImportError: +except AttributeError: def os_fsencode(filename): if not isinstance(filename, unicode): return filename |