Show More
@@ -21,11 +21,7 b' import os' | |||
|
21 | 21 | from textwrap import dedent |
|
22 | 22 | import types |
|
23 | 23 | import io as stdlib_io |
|
24 | ||
|
25 | try: | |
|
26 | from itertools import izip_longest | |
|
27 | except ImportError: | |
|
28 | from itertools import zip_longest as izip_longest | |
|
24 | from itertools import zip_longest | |
|
29 | 25 | |
|
30 | 26 | # IPython's own |
|
31 | 27 | from IPython.core import page |
@@ -84,7 +80,7 b" info_fields = ['type_name', 'base_class', 'string_form', 'namespace'," | |||
|
84 | 80 | |
|
85 | 81 | def object_info(**kw): |
|
86 | 82 | """Make an object info dict with all fields present.""" |
|
87 |
infodict = dict( |
|
|
83 | infodict = dict(zip_longest(info_fields, [None])) | |
|
88 | 84 | infodict.update(kw) |
|
89 | 85 | return infodict |
|
90 | 86 |
General Comments 0
You need to be logged in to leave comments.
Login now