Skip to content

Commit 7b955bd

Browse files
committed
Fix pdb help command.
1 parent 46a05a7 commit 7b955bd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def do_help(self, arg):
334334
cmds_undoc.append(cmd)
335335
self.stdout.write("%s\n"%str(self.doc_leader))
336336
self.print_topics(self.doc_header, cmds_doc, 15,80)
337-
self.print_topics(self.misc_header, help.keys(),15,80)
337+
self.print_topics(self.misc_header, list(help.keys()),15,80)
338338
self.print_topics(self.undoc_header, cmds_undoc, 15,80)
339339

340340
def print_topics(self, header, cmds, cmdlen, maxcol):
@@ -354,8 +354,9 @@ def columnize(self, list, displaywidth=80):
354354
if not list:
355355
self.stdout.write("<empty>\n")
356356
return
357+
357358
nonstrings = [i for i in range(len(list))
358-
if not isinstance(list[i], str)]
359+
if not isinstance(list[i], basestring)]
359360
if nonstrings:
360361
raise TypeError, ("list[i] not a string for i in %s" %
361362
", ".join(map(str, nonstrings)))

0 commit comments

Comments
 (0)