diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5ca1277a994..f0e9fe8ed6e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1117,8 +1117,8 @@ def _emacs_args (name): # get arglist of name for eldoc &c | |||
| 1117 | doc = func.__doc__ | 1117 | doc = func.__doc__ |
| 1118 | if doc.find (' ->') != -1: | 1118 | if doc.find (' ->') != -1: |
| 1119 | print '_emacs_out', doc.split (' ->')[0] | 1119 | print '_emacs_out', doc.split (' ->')[0] |
| 1120 | elif doc.find ('\n') != -1: | 1120 | elif doc.find ('\\n') != -1: |
| 1121 | print '_emacs_out', doc.split ('\n')[0] | 1121 | print '_emacs_out', doc.split ('\\n')[0] |
| 1122 | return None | 1122 | return None |
| 1123 | if inspect.ismethod (func): func = func.im_func | 1123 | if inspect.ismethod (func): func = func.im_func |
| 1124 | if not inspect.isfunction (func): | 1124 | if not inspect.isfunction (func): |
| @@ -1247,10 +1247,8 @@ module-qualified names." | |||
| 1247 | (set (make-local-variable 'python-orig-file) nil) | 1247 | (set (make-local-variable 'python-orig-file) nil) |
| 1248 | (set (make-local-variable 'python-orig-start-line) nil) | 1248 | (set (make-local-variable 'python-orig-start-line) nil) |
| 1249 | (format "\ | 1249 | (format "\ |
| 1250 | try: | 1250 | if globals().has_key(%S): reload(%s) |
| 1251 | if globals().has_key(%S): reload(%s) | 1251 | else: import %s |
| 1252 | else: import %s | ||
| 1253 | except: None | ||
| 1254 | " module module module)) | 1252 | " module module module)) |
| 1255 | (set (make-local-variable 'python-orig-file) file-name) | 1253 | (set (make-local-variable 'python-orig-file) file-name) |
| 1256 | (set (make-local-variable 'python-orig-start-line) 1) | 1254 | (set (make-local-variable 'python-orig-start-line) 1) |
| @@ -1289,7 +1287,7 @@ Interactively, prompt for symbol." | |||
| 1289 | (enable-recursive-minibuffers t) | 1287 | (enable-recursive-minibuffers t) |
| 1290 | val) | 1288 | val) |
| 1291 | (setq val (read-string (if symbol | 1289 | (setq val (read-string (if symbol |
| 1292 | (format "Describe variable (default %s): " | 1290 | (format "Describe symbol (default %s): " |
| 1293 | symbol) | 1291 | symbol) |
| 1294 | "Describe symbol: ") | 1292 | "Describe symbol: ") |
| 1295 | nil nil symbol)) | 1293 | nil nil symbol)) |