##// END OF EJS Templates
Remove None check for fallback cProfile import and ExecutionMagics.profile_missing_notice....
Terry Davis -
Show More
@@ -173,17 +173,9 b' class ExecutionMagics(Magics):'
173 173
174 174 def __init__(self, shell):
175 175 super(ExecutionMagics, self).__init__(shell)
176 if profile is None:
177 self.prun = self.profile_missing_notice
178 176 # Default execution function used to actually run user code.
179 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 179 @skip_doctest
188 180 @no_var_expand
189 181 @line_cell_magic
General Comments 0
You need to be logged in to leave comments. Login now