diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2016-05-11 08:05:29 +0300 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-05-12 19:39:36 +0800 |
commit | 6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3 (patch) | |
tree | 487a1662617a838efcd13a238868cd865c9154b4 /dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch | |
parent | 6ad373dafa68673e4caf71514bd57abc1e22fb58 (diff) | |
download | gentoo-6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3.tar.gz gentoo-6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3.tar.xz |
dev-python/guessit: verbump to 2.0.5
It's a complete rewrite since 1.x thus drop untested implementations
from PYTHON_COMPAT.
Sync 9999 ebuild with 2.0.5.
Package-Manager: portage-2.2.28
Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch')
-rw-r--r-- | dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch b/dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch new file mode 100644 index 00000000000..e0678d10536 --- /dev/null +++ b/dev-python/guessit/files/guessit-2.0.5-support-noninteractive-shells.patch @@ -0,0 +1,22 @@ +commit e43ef015ae88c43fa39274a23515adbe22ba2b2a +Author: Ilya Tumaykin <itumaykin@gmail.com> +Date: Tue May 10 08:06:13 2016 +0300 + +options: fix StrOptType for non-interactive shells on Python 2 + +Closes: https://github.com/guessit-io/guessit/issues/293 +--- + +diff --git a/guessit/options.py b/guessit/options.py +index 3d60ef9..41ba143 100644 +--- a/guessit/options.py ++++ b/guessit/options.py +@@ -11,7 +11,7 @@ import six + + + if six.PY2: +- StrOptType = lambda s: unicode(s, sys.stdin.encoding) # pylint:disable=undefined-variable ++ StrOptType = lambda s: unicode(s, sys.stdin.encoding) if sys.stdin.isatty() else unicode(s, 'UTF-8') # pylint:disable=undefined-variable + else: + StrOptType = str # pylint:disable=redefined-variable-type + |