This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][python] Auto-load gdb.command and gdb.function modules


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> +       py_file = py_file.rstrip('.py')

The argument to rstrip is a set of characters; I think this will do the
wrong thing for, e.g., "p.py".
You can just use py_file[:-3] instead.
The code bits are ok with that change.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]