diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-12-11 06:45:34 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-12-11 06:45:34 +0000 |
commit | e8082fef03bd04042dad3fb2d0513587c54874ab (patch) | |
tree | 2115ecd5b0c121356693cbaefed13509e2e19dc3 /check | |
parent | 826a78924bbed1bfd0e17a869a11ccf3d320bb9b (diff) | |
parent | a5858f2dc142411d7acc5b4a9f84b786a5082eb5 (diff) | |
download | subplot-e8082fef03bd04042dad3fb2d0513587c54874ab.tar.gz |
Merge branch 'tidyup' into 'main'
tidy ups
See merge request subplot/subplot!241
Diffstat (limited to 'check')
-rwxr-xr-x | check | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -107,7 +107,11 @@ class Runcmd: def got_cargo(self, subcommand): """Is a cargo subcommand available?""" p = self.runcmd(["cargo", "--list"], check=True, stdout=PIPE) - lines = [line.strip() for line in p.stdout.decode("UTF-8").splitlines()] + lines = [ + line.split()[0] + for line in p.stdout.decode("UTF-8").splitlines() + if line.strip() + ] return subcommand in lines def codegen(self, md, output, **kwargs): |