git: 1f5040115670 - main - textproc/py-ttp: Update to 0.8.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 11 Jan 2022 18:55:48 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1f5040115670861c17fd14408eddcb224e51650c

commit 1f5040115670861c17fd14408eddcb224e51650c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-11 17:17:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-11 18:44:44 +0000

    textproc/py-ttp: Update to 0.8.2
    
    Changes:        https://github.com/dmulyalin/ttp/releases
---
 textproc/py-ttp/Makefile                                       | 2 +-
 textproc/py-ttp/distinfo                                       | 6 +++---
 textproc/py-ttp/files/patch-ttp-returners-terminal_returner.py | 8 +++++---
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/textproc/py-ttp/Makefile b/textproc/py-ttp/Makefile
index cfd65b516f55..192cd3974b83 100644
--- a/textproc/py-ttp/Makefile
+++ b/textproc/py-ttp/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	ttp
-PORTVERSION=	0.8.1
+PORTVERSION=	0.8.2
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/textproc/py-ttp/distinfo b/textproc/py-ttp/distinfo
index 4a6526f5e5e0..8ced61373398 100644
--- a/textproc/py-ttp/distinfo
+++ b/textproc/py-ttp/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635181103
-SHA256 (ttp-0.8.1.tar.gz) = 33ceea28919c4e15c47e22b221569469b94c76475bd144ff19ac62fd9bd506ca
-SIZE (ttp-0.8.1.tar.gz) = 66121
+TIMESTAMP = 1641046014
+SHA256 (ttp-0.8.2.tar.gz) = a3d8819d108f9bea8d79f46aa95dc4fcc13b7db488d2a2e7899a07c50e39617f
+SIZE (ttp-0.8.2.tar.gz) = 66718
diff --git a/textproc/py-ttp/files/patch-ttp-returners-terminal_returner.py b/textproc/py-ttp/files/patch-ttp-returners-terminal_returner.py
index e31a2489471c..83a1840c56d1 100644
--- a/textproc/py-ttp/files/patch-ttp-returners-terminal_returner.py
+++ b/textproc/py-ttp/files/patch-ttp-returners-terminal_returner.py
@@ -1,12 +1,14 @@
---- ttp/returners/terminal_returner.py.orig	2020-10-29 23:14:41 UTC
+--- ttp/returners/terminal_returner.py.orig	2021-12-17 23:00:10 UTC
 +++ ttp/returners/terminal_returner.py
-@@ -33,12 +33,12 @@ def terminal_returner(data, **kwargs):
+@@ -33,14 +33,14 @@ def terminal_returner(data, **kwargs):
          for yeallow_word in yeallow_words:
              data = data.replace(yeallow_word, fttr.format(Y, yeallow_word, N))
      # print output
 -    if _ttp_["python_major_version"] is 2:
 +    if _ttp_["python_major_version"] == 2:
-         if isinstance(data, str) or isinstance(data, unicode):
+         if isinstance(data, str) or isinstance(
+             data, unicode
+         ):  # pylint: disable=undefined-variable
              print(data)
          else:
              print(str(data).replace("\\n", "\n"))