diff options
author | Andrey Grozin <grozin@gentoo.org> | 2017-12-15 16:29:13 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2017-12-15 16:29:13 +0700 |
commit | 459279976eb06d9ecc07fdea3e57f336018e2f2a (patch) | |
tree | 1ae3c631dea27ae5fc3dd2db7479b55d002b1cd5 /dev-python/plumbum/files | |
parent | dev-python/BitVector: bump to 3.4.7 (diff) | |
download | gentoo-459279976eb06d9ecc07fdea3e57f336018e2f2a.tar.gz gentoo-459279976eb06d9ecc07fdea3e57f336018e2f2a.tar.bz2 gentoo-459279976eb06d9ecc07fdea3e57f336018e2f2a.zip |
dev-python/plumbum: bump to 1.6.4
Package-Manager: Portage-2.3.18, Repoman-2.3.6
Diffstat (limited to 'dev-python/plumbum/files')
-rw-r--r-- | dev-python/plumbum/files/plumbum-1.6.4.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/plumbum/files/plumbum-1.6.4.patch b/dev-python/plumbum/files/plumbum-1.6.4.patch new file mode 100644 index 000000000000..ce18d7afe09d --- /dev/null +++ b/dev-python/plumbum/files/plumbum-1.6.4.patch @@ -0,0 +1,35 @@ +diff -r -U2 plumbum-1.6.4.orig/plumbum/cli/image.py plumbum-1.6.4/plumbum/cli/image.py +--- plumbum-1.6.4.orig/plumbum/cli/image.py 2017-11-08 21:20:49.000000000 +0700 ++++ plumbum-1.6.4/plumbum/cli/image.py 2017-12-15 15:45:16.184943092 +0700 +@@ -3,5 +3,6 @@ + from plumbum import colors + from .termsize import get_terminal_size +-import . as cli ++from .application import Application ++from .switches import switch, SwitchAttr, Flag, positional, Range, ExistingFile + import sys + +@@ -75,17 +76,17 @@ + print(colors.reset) + +-class ShowImageApp(cli.Application): ++class ShowImageApp(Application): + 'Display an image on the terminal' +- double = cli.Flag(['-d','--double'], help="Double resolution (only looks good with some fonts)") ++ double = Flag(['-d','--double'], help="Double resolution (only looks good with some fonts)") + +- @cli.switch(['-c','--colors'], cli.Range(1,4), help="Level of color, 1-4") ++ @switch(['-c','--colors'], Range(1,4), help="Level of color, 1-4") + def colors_set(self, n): + colors.use_color = n + +- size = cli.SwitchAttr(['-s','--size'], help="Size, should be in the form 100x150") ++ size = SwitchAttr(['-s','--size'], help="Size, should be in the form 100x150") + +- ratio = cli.SwitchAttr(['--ratio'], float, default=2.45, help="Aspect ratio of the font") ++ ratio = SwitchAttr(['--ratio'], float, default=2.45, help="Aspect ratio of the font") + +- @cli.positional(cli.ExistingFile) ++ @positional(ExistingFile) + def main(self, filename): + |