Skip to content

Commit c006a5f

Browse files
authored
Merge pull request #13 from corrafig/issue-12
Add support for pyflakes 2.5.0 output
2 parents a6f63cf + 5e537f8 commit c006a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyimport.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Required for `pyimport-remove-unused'.")
321321
(kill-buffer "*pyimport*")
322322

323323
(let* ((raw-lines (s-split "\n" (s-trim flycheck-output)))
324-
(lines (--map (s-split ":" it) raw-lines))
324+
(lines (--map (s-split-up-to ":" it 2) raw-lines))
325325
(import-lines (--filter (s-ends-with-p "imported but unused" (-last-item it)) lines))
326326
(unused-imports (--map (cons (read (nth 1 it))
327327
(pyimport--extract-unused-var (nth 2 it))) import-lines)))

0 commit comments

Comments
 (0)