Function: python-sort-imports
python-sort-imports is an autoloaded, interactive and byte-compiled
function defined in python.el.gz.
Signature
(python-sort-imports)
Documentation
Sort Python imports in the current buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;;###autoload
(defun python-sort-imports ()
"Sort Python imports in the current buffer."
(interactive)
(if (python--do-isort)
(message "Sorted imports")
(message "(No changes in Python imports needed)")))