##// END OF EJS Templates
Fixed line_number being inserted as a string into the %edit payload.
epatters -
Show More
@@ -25,7 +25,7 b' class IPythonWidget(FrontendWidget):'
25
25
26 # Signal emitted when an editor is needed for a file and the editor has been
26 # Signal emitted when an editor is needed for a file and the editor has been
27 # specified as 'custom'. See 'set_editor' for more information.
27 # specified as 'custom'. See 'set_editor' for more information.
28 custom_edit_requested = QtCore.pyqtSignal(object, int)
28 custom_edit_requested = QtCore.pyqtSignal(object, object)
29
29
30 # The default stylesheet: black text on a white background.
30 # The default stylesheet: black text on a white background.
31 default_stylesheet = """
31 default_stylesheet = """
@@ -246,6 +246,12 b' class ZMQInteractiveShell(InteractiveShell):'
246
246
247 # Default line number value
247 # Default line number value
248 lineno = opts.get('n',None)
248 lineno = opts.get('n',None)
249 if lineno is not None:
250 try:
251 lineno = int(lineno)
252 except:
253 warn("The -n argument must be an integer.")
254 return
249
255
250 if opts_p:
256 if opts_p:
251 args = '_%s' % last_call[0]
257 args = '_%s' % last_call[0]
General Comments 0
You need to be logged in to leave comments. Login now