ENH: "is None" instead of "== None" + tune ups in headers

is None is generally faster than == and from looking at those places
should be adequate.

Also while at those files removed unneded duplicate author listing +
expanded copyright/authors with myself where applicable
This commit is contained in:
Yaroslav Halchenko
2013-05-02 23:25:43 -04:00
parent 4f59e14616
commit 8e63d4c6da
10 changed files with 23 additions and 56 deletions

View File

@@ -17,13 +17,7 @@
# along with Fail2Ban; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Author: Cyril Jaquier
#
# $Revision$
__author__ = "Cyril Jaquier"
__version__ = "$Revision$"
__date__ = "$Date$"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
@@ -125,7 +119,7 @@ class FailRegex(Regex):
def getHost(self):
host = self._matchCache.group("host")
if host == None:
if host is None:
# Gets a few information.
s = self._matchCache.string
r = self._matchCache.re