Skip to content

Commit 8ca4a70

Browse files
eli-schwartzfloppym
authored andcommitted
fix missing shlex import in error path
Regression in commit 002cd09. Since the function we need isn't invisibly exposed via portage.*, we need to distinctly import it. We did in most cases, but not here. Caught by flake8's missing imports linter. Unfortunately, the overall usefulness of flake8 here is effectively nil, because lazyimport means *all* imports are "missing". It is too noisy to believe. But I actually spotted this error, it's not a false positive, and we might as well fix it immediately. Fixes: 002cd09 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> Closes: #1438 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
1 parent 6a2bd85 commit 8ca4a70

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import argparse
66
import os
7+
import shlex
78
import stat
89
import sys
910
import subprocess

0 commit comments

Comments
 (0)