Show More
@@ -173,17 +173,9 b' class ExecutionMagics(Magics):' | |||||
173 |
|
173 | |||
174 | def __init__(self, shell): |
|
174 | def __init__(self, shell): | |
175 | super(ExecutionMagics, self).__init__(shell) |
|
175 | super(ExecutionMagics, self).__init__(shell) | |
176 | if profile is None: |
|
|||
177 | self.prun = self.profile_missing_notice |
|
|||
178 | # Default execution function used to actually run user code. |
|
176 | # Default execution function used to actually run user code. | |
179 | self.default_runner = None |
|
177 | self.default_runner = None | |
180 |
|
178 | |||
181 | def profile_missing_notice(self, *args, **kwargs): |
|
|||
182 | error("""\ |
|
|||
183 | The profile module could not be found. It has been removed from the standard |
|
|||
184 | python packages because of its non-free license. To use profiling, install the |
|
|||
185 | python-profiler package from non-free.""") |
|
|||
186 |
|
||||
187 | @skip_doctest |
|
179 | @skip_doctest | |
188 | @no_var_expand |
|
180 | @no_var_expand | |
189 | @line_cell_magic |
|
181 | @line_cell_magic |
General Comments 0
You need to be logged in to leave comments.
Login now