svn commit: r543284 - in head/security/denyhosts: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Jul 24 18:59:21 UTC 2020
Author: sunpoet
Date: Fri Jul 24 18:59:17 2020
New Revision: 543284
URL: https://svnweb.freebsd.org/changeset/ports/543284
Log:
Fix AttributeError error
- Bump PORTREVISION for package change
Reported by: Frank Bartels <freebsd at knarf.de>
Obtained from: https://github.com/denyhosts/denyhosts/commit/d4cdd64d2e3b2c395193a141db8d3c5cbda91f28
Added:
head/security/denyhosts/files/patch-DenyHosts-report.py (contents, props changed)
Modified:
head/security/denyhosts/Makefile
Modified: head/security/denyhosts/Makefile
==============================================================================
--- head/security/denyhosts/Makefile Fri Jul 24 18:59:12 2020 (r543283)
+++ head/security/denyhosts/Makefile Fri Jul 24 18:59:17 2020 (r543284)
@@ -4,6 +4,7 @@
PORTNAME= denyhosts
PORTVERSION= 3.1
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= security
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
Added: head/security/denyhosts/files/patch-DenyHosts-report.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/denyhosts/files/patch-DenyHosts-report.py Fri Jul 24 18:59:17 2020 (r543284)
@@ -0,0 +1,25 @@
+Obtained from: https://github.com/denyhosts/denyhosts/commit/d4cdd64d2e3b2c395193a141db8d3c5cbda91f28
+
+--- DenyHosts/report.py.orig 2015-09-16 19:40:15 UTC
++++ DenyHosts/report.py
+@@ -1,9 +1,6 @@
+ import logging
+ import re
+ import socket
+-# Removing this as it causes runtime errors on Python3.4
+-# from types import ListType, TupleType
+-import types
+ from .util import is_true
+ try:
+ import syslog
+@@ -39,8 +36,8 @@ class Report:
+ def add_section(self, message, iterable):
+ self.report += "%s:\n\n" % message
+ for i in iterable:
+- # if type(i) in (TupleType, ListType):
+- if (type(i) is types.ListType) or (type(i) is types.TupleType):
++ # checks the item type (list or tuple)
++ if isinstance(i, list) or isinstance(i, tuple):
+ extra = ": %d\n" % i[1]
+ i = i[0]
+ else:
More information about the svn-ports-head
mailing list