##// END OF EJS Templates
Fix invalid attribute access in magics.
Fernando Perez -
Show More
@@ -79,7 +79,7 b' class NamespaceMagics(Magics):'
79 79 In [3]: %pdef urllib.urlopen
80 80 urllib.urlopen(url, data=None, proxies=None)
81 81 """
82 self._inspect('pdef',parameter_s, namespaces)
82 self.shell._inspect('pdef',parameter_s, namespaces)
83 83
84 84 @line_magic
85 85 def pdoc(self, parameter_s='', namespaces=None):
@@ -87,12 +87,12 b' class NamespaceMagics(Magics):'
87 87
88 88 If the given object is a class, it will print both the class and the
89 89 constructor docstrings."""
90 self._inspect('pdoc',parameter_s, namespaces)
90 self.shell._inspect('pdoc',parameter_s, namespaces)
91 91
92 92 @line_magic
93 93 def psource(self, parameter_s='', namespaces=None):
94 94 """Print (or run through pager) the source code for an object."""
95 self._inspect('psource',parameter_s, namespaces)
95 self.shell._inspect('psource',parameter_s, namespaces)
96 96
97 97 @line_magic
98 98 def pfile(self, parameter_s=''):
@@ -108,7 +108,7 b' class NamespaceMagics(Magics):'
108 108 viewer."""
109 109
110 110 # first interpret argument as an object name
111 out = self._inspect('pfile',parameter_s)
111 out = self.shell._inspect('pfile',parameter_s)
112 112 # if not, try the input as a filename
113 113 if out == 'not found':
114 114 try:
General Comments 0
You need to be logged in to leave comments. Login now