layers/+lang/python/funcs.el: Fix typo in flag (#15905)

This commit is contained in:
Derek 2023-01-26 04:03:47 -05:00 committed by GitHub
parent 58a52ae6ef
commit 2c54914370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -218,11 +218,11 @@ ROOT-DIR should be the path for the environemnt, `nil' for clean up"
;; from https://www.snip2code.com/Snippet/127022/Emacs-auto-remove-unused-import-statemen ;; from https://www.snip2code.com/Snippet/127022/Emacs-auto-remove-unused-import-statemen
(defun spacemacs/python-remove-unused-imports () (defun spacemacs/python-remove-unused-imports ()
"Use Autoflake to remove unused imports. "Use Autoflake to remove unused imports.
Equivalent to: autoflake --remove-all-unused-imports --inplace <FILE>" Equivalent to: autoflake --remove-all-unused-imports --in-place <FILE>"
(interactive) (interactive)
(if (executable-find "autoflake") (if (executable-find "autoflake")
(if (not (eql 0 (if (not (eql 0
(shell-command (format "autoflake --remove-all-unused-imports --inplace %s" (shell-command (format "autoflake --remove-all-unused-imports --in-place %s"
(shell-quote-argument (buffer-file-name)))))) (shell-quote-argument (buffer-file-name))))))
(pop-to-buffer shell-command-buffer-name) (pop-to-buffer shell-command-buffer-name)
(revert-buffer t t t)) (revert-buffer t t t))