File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
; ; Author: Wilfred Hughes <me@wilfred.me.uk>
6
6
; ; Created: 25 Jun 2016
7
7
; ; Version: 1.1
8
- ; ; Package-Requires: ((dash "2.8.0") (s "1.9.0"))
8
+ ; ; Package-Requires: ((dash "2.8.0") (s "1.9.0") (shut-up "0.3.2") )
9
9
; ;; Commentary:
10
10
11
11
; ; This package can remove unused Python imports, or insert missing
36
36
(require 'rx )
37
37
(require 's )
38
38
(require 'dash )
39
+ (require 'shut-up )
39
40
40
41
(defun pyimport--current-line ()
41
42
" Return the whole line at point, excluding the trailing newline."
@@ -269,8 +270,9 @@ Required for `pyimport-remove-unused'.")
269
270
(user-error " You need to install pyflakes or set pyimport-pyflakes-path" ))
270
271
271
272
(let (flycheck-output)
272
- (shell-command-on-region
273
- (point-min ) (point-max ) pyimport-pyflakes-path " *pyimport*" )
273
+ (shut-up
274
+ (shell-command-on-region
275
+ (point-min ) (point-max ) pyimport-pyflakes-path " *pyimport*" ))
274
276
(with-current-buffer " *pyimport*"
275
277
(setq flycheck-output (buffer-string )))
276
278
(kill-buffer " *pyimport*" )
You can’t perform that action at this time.
0 commit comments