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