We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f63cf commit 5e537f8Copy full SHA for 5e537f8
pyimport.el
@@ -321,7 +321,7 @@ Required for `pyimport-remove-unused'.")
321
(kill-buffer "*pyimport*")
322
323
(let* ((raw-lines (s-split "\n" (s-trim flycheck-output)))
324
- (lines (--map (s-split ":" it) raw-lines))
+ (lines (--map (s-split-up-to ":" it 2) raw-lines))
325
(import-lines (--filter (s-ends-with-p "imported but unused" (-last-item it)) lines))
326
(unused-imports (--map (cons (read (nth 1 it))
327
(pyimport--extract-unused-var (nth 2 it))) import-lines)))
0 commit comments