summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2011-10-07 15:47:50 -0400
committerYaroslav Halchenko <debian@onerussian.com>2011-10-07 15:49:38 -0400
commited6daa70bfd01a843b39cc0a858163663ec040bc (patch)
tree1fedec421aa47f86b0a84d6b7c9463ab9f2d45bf
parent19c9ac4fb56407ce4d90a82daf1ff95d5b27d49d (diff)
downloadfail2ban-ed6daa70bfd01a843b39cc0a858163663ec040bc.tar.gz
ENH: modelines for emacs and vim to assure consistent indentation scheme (tabs)
-rw-r--r--client/__init__.py3
-rw-r--r--client/actionreader.py5
-rw-r--r--client/beautifier.py3
-rw-r--r--client/configparserinc.py3
-rw-r--r--client/configreader.py3
-rw-r--r--client/configurator.py5
-rw-r--r--client/csocket.py3
-rw-r--r--client/fail2banreader.py5
-rw-r--r--client/filterreader.py5
-rw-r--r--client/jailreader.py3
-rw-r--r--client/jailsreader.py5
-rw-r--r--common/__init__.py3
-rw-r--r--common/helpers.py21
-rw-r--r--common/protocol.py3
-rw-r--r--common/version.py3
-rwxr-xr-xfail2ban-client3
-rwxr-xr-xfail2ban-server3
-rwxr-xr-xfail2ban-testcases5
-rw-r--r--server/__init__.py3
-rw-r--r--server/action.py3
-rw-r--r--server/actions.py3
-rw-r--r--server/asyncserver.py3
-rw-r--r--server/banmanager.py3
-rw-r--r--server/datedetector.py3
-rw-r--r--server/datetemplate.py4
-rw-r--r--server/faildata.py3
-rw-r--r--server/failmanager.py3
-rw-r--r--server/failregex.py3
-rw-r--r--server/filter.py3
-rw-r--r--server/filtergamin.py3
-rw-r--r--server/filterpoll.py3
-rw-r--r--server/iso8601.py3
-rw-r--r--server/jail.py3
-rw-r--r--server/jails.py3
-rw-r--r--server/jailthread.py3
-rw-r--r--server/mytime.py3
-rw-r--r--server/server.py3
-rw-r--r--server/ticket.py3
-rw-r--r--server/transmitter.py5
-rwxr-xr-xsetup.py2
-rw-r--r--testcases/__init__.py5
-rw-r--r--testcases/actiontestcase.py5
-rw-r--r--testcases/banmanagertestcase.py5
-rw-r--r--testcases/clientreadertestcase.py5
-rw-r--r--testcases/datedetectortestcase.py5
-rw-r--r--testcases/failmanagertestcase.py3
-rw-r--r--testcases/filtertestcase.py3
-rw-r--r--testcases/servertestcase.py5
48 files changed, 165 insertions, 23 deletions
diff --git a/client/__init__.py b/client/__init__.py
index dc25edd6..65ba9868 100644
--- a/client/__init__.py
+++ b/client/__init__.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/actionreader.py b/client/actionreader.py
index 51acaf07..29672bca 100644
--- a/client/actionreader.py
+++ b/client/actionreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -87,4 +90,4 @@ class ActionReader(ConfigReader):
stream.append(head + ["setcinfo", self.__file, p, self.__cInfo[p]])
return stream
- \ No newline at end of file
+
diff --git a/client/beautifier.py b/client/beautifier.py
index ab98b294..104a239e 100644
--- a/client/beautifier.py
+++ b/client/beautifier.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/configparserinc.py b/client/configparserinc.py
index 081ec399..da4e574b 100644
--- a/client/configparserinc.py
+++ b/client/configparserinc.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/configreader.py b/client/configreader.py
index f8e9ade8..18ae9b9a 100644
--- a/client/configreader.py
+++ b/client/configreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/configurator.py b/client/configurator.py
index 8c3a69dd..526f218b 100644
--- a/client/configurator.py
+++ b/client/configurator.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -75,4 +78,4 @@ class Configurator:
for opt in self.__streams["jails"]:
cmds.append(opt)
return cmds
- \ No newline at end of file
+
diff --git a/client/csocket.py b/client/csocket.py
index 13bae5f8..4bfb0510 100644
--- a/client/csocket.py
+++ b/client/csocket.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/fail2banreader.py b/client/fail2banreader.py
index 99bc522e..f4f2728f 100644
--- a/client/fail2banreader.py
+++ b/client/fail2banreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -55,4 +58,4 @@ class Fail2banReader(ConfigReader):
elif opt == "logtarget":
stream.append(["set", "logtarget", self.__opts[opt]])
return stream
- \ No newline at end of file
+
diff --git a/client/filterreader.py b/client/filterreader.py
index 4e546da2..b20c6f83 100644
--- a/client/filterreader.py
+++ b/client/filterreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -71,4 +74,4 @@ class FilterReader(ConfigReader):
if regex != '':
stream.append(["set", self.__name, "addignoreregex", regex])
return stream
- \ No newline at end of file
+
diff --git a/client/jailreader.py b/client/jailreader.py
index a65f5eae..52d5f82c 100644
--- a/client/jailreader.py
+++ b/client/jailreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/client/jailsreader.py b/client/jailsreader.py
index 620e7b45..9e68dffe 100644
--- a/client/jailsreader.py
+++ b/client/jailsreader.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -84,4 +87,4 @@ class JailsReader(ConfigReader):
stream.append(["start", jail.getName()])
return stream
- \ No newline at end of file
+
diff --git a/common/__init__.py b/common/__init__.py
index dc25edd6..65ba9868 100644
--- a/common/__init__.py
+++ b/common/__init__.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/common/helpers.py b/common/helpers.py
index a8671592..5afc3723 100644
--- a/common/helpers.py
+++ b/common/helpers.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -27,12 +30,12 @@ __license__ = "GPL"
def formatExceptionInfo():
- """ Author: Arturo 'Buanzo' Busleiman """
- import sys
- cla, exc = sys.exc_info()[:2]
- excName = cla.__name__
- try:
- excArgs = exc.__dict__["args"]
- except KeyError:
- excArgs = str(exc)
- return (excName, excArgs)
+ """ Author: Arturo 'Buanzo' Busleiman """
+ import sys
+ cla, exc = sys.exc_info()[:2]
+ excName = cla.__name__
+ try:
+ excArgs = exc.__dict__["args"]
+ except KeyError:
+ excArgs = str(exc)
+ return (excName, excArgs)
diff --git a/common/protocol.py b/common/protocol.py
index 675ef5ec..7f0ec9e1 100644
--- a/common/protocol.py
+++ b/common/protocol.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/common/version.py b/common/version.py
index fc90ffc6..ed2f72db 100644
--- a/common/version.py
+++ b/common/version.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/fail2ban-client b/fail2ban-client
index d212fe7f..31dd48ca 100755
--- a/fail2ban-client
+++ b/fail2ban-client
@@ -1,4 +1,7 @@
#!/usr/bin/python
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/fail2ban-server b/fail2ban-server
index 696f3e95..f66bbaf8 100755
--- a/fail2ban-server
+++ b/fail2ban-server
@@ -1,4 +1,7 @@
#!/usr/bin/python
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/fail2ban-testcases b/fail2ban-testcases
index 28945ae3..5abf506c 100755
--- a/fail2ban-testcases
+++ b/fail2ban-testcases
@@ -1,4 +1,7 @@
#!/usr/bin/python
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -83,5 +86,5 @@ testRunner.run(tests)
# yoh is planing to move all this into setup/teardown methods within tests
os.environ.pop('TZ')
if old_TZ:
- os.environ['TZ'] = old_TZ
+ os.environ['TZ'] = old_TZ
time.tzset()
diff --git a/server/__init__.py b/server/__init__.py
index dc25edd6..65ba9868 100644
--- a/server/__init__.py
+++ b/server/__init__.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/action.py b/server/action.py
index 8dafbf27..e8f6bd12 100644
--- a/server/action.py
+++ b/server/action.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/actions.py b/server/actions.py
index 06f15ec6..96684485 100644
--- a/server/actions.py
+++ b/server/actions.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/asyncserver.py b/server/asyncserver.py
index 35cebf1f..97f20055 100644
--- a/server/asyncserver.py
+++ b/server/asyncserver.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/banmanager.py b/server/banmanager.py
index 13c2a307..b84c3691 100644
--- a/server/banmanager.py
+++ b/server/banmanager.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/datedetector.py b/server/datedetector.py
index 6ee6870d..f0cecede 100644
--- a/server/datedetector.py
+++ b/server/datedetector.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/datetemplate.py b/server/datetemplate.py
index 8af46018..c4a644b7 100644
--- a/server/datetemplate.py
+++ b/server/datetemplate.py
@@ -1,4 +1,6 @@
-# -*- coding: utf-8 -*-
+# emacs: -*- mode: python; coding: utf-8; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/faildata.py b/server/faildata.py
index d68cd7c1..3cc75c24 100644
--- a/server/faildata.py
+++ b/server/faildata.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/failmanager.py b/server/failmanager.py
index 840455df..c9dbdac1 100644
--- a/server/failmanager.py
+++ b/server/failmanager.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/failregex.py b/server/failregex.py
index 0a5a0de4..5bc1c401 100644
--- a/server/failregex.py
+++ b/server/failregex.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/filter.py b/server/filter.py
index 6f1e4c7d..b8f75aa0 100644
--- a/server/filter.py
+++ b/server/filter.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/filtergamin.py b/server/filtergamin.py
index d2b06fee..0489a2ef 100644
--- a/server/filtergamin.py
+++ b/server/filtergamin.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/filterpoll.py b/server/filterpoll.py
index 621816ed..618e4bac 100644
--- a/server/filterpoll.py
+++ b/server/filterpoll.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/iso8601.py b/server/iso8601.py
index 71dccfea..a42989ea 100644
--- a/server/iso8601.py
+++ b/server/iso8601.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
+# vi: set ft=python sts=4 ts=4 sw=4 et:
+
# Copyright (c) 2007 Michael Twomey
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/server/jail.py b/server/jail.py
index 7b4a2719..eefe69e5 100644
--- a/server/jail.py
+++ b/server/jail.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/jails.py b/server/jails.py
index 8dbde9c8..1ff94e06 100644
--- a/server/jails.py
+++ b/server/jails.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/jailthread.py b/server/jailthread.py
index 44667ff0..ac102ba3 100644
--- a/server/jailthread.py
+++ b/server/jailthread.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/mytime.py b/server/mytime.py
index 6bb38f85..b64a2b75 100644
--- a/server/mytime.py
+++ b/server/mytime.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/server.py b/server/server.py
index a1d7646a..b1d8e34e 100644
--- a/server/server.py
+++ b/server/server.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/ticket.py b/server/ticket.py
index c89dc9f0..1443fdb8 100644
--- a/server/ticket.py
+++ b/server/ticket.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/server/transmitter.py b/server/transmitter.py
index cb9d668d..27e966a6 100644
--- a/server/transmitter.py
+++ b/server/transmitter.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -261,4 +264,4 @@ class Transmitter:
name = command[0]
return self.__server.statusJail(name)
raise Exception("Invalid command (no status)")
- \ No newline at end of file
+
diff --git a/setup.py b/setup.py
index 1e43771f..aff89545 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,6 @@
#!/usr/bin/python
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
# This file is part of Fail2Ban.
#
diff --git a/testcases/__init__.py b/testcases/__init__.py
index 76dba873..65ba9868 100644
--- a/testcases/__init__.py
+++ b/testcases/__init__.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -22,4 +25,4 @@ __author__ = "Cyril Jaquier"
__version__ = "$Revision$"
__date__ = "$Date$"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
-__license__ = "GPL" \ No newline at end of file
+__license__ = "GPL"
diff --git a/testcases/actiontestcase.py b/testcases/actiontestcase.py
index bc6f39ad..a537ab0c 100644
--- a/testcases/actiontestcase.py
+++ b/testcases/actiontestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -44,4 +47,4 @@ class ExecuteAction(unittest.TestCase):
self.__action.setActionCheck("[ -e /tmp/fail2ban.test ]")
self.assertTrue(self.__action.execActionBan(None))
- \ No newline at end of file
+
diff --git a/testcases/banmanagertestcase.py b/testcases/banmanagertestcase.py
index 644cf6cb..4ff76f41 100644
--- a/testcases/banmanagertestcase.py
+++ b/testcases/banmanagertestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -53,4 +56,4 @@ class AddFailure(unittest.TestCase):
def _testInListNOK(self):
ticket = BanTicket('111.111.1.111', 1167605999.0)
self.assertFalse(self.__banManager.inBanList(ticket))
- \ No newline at end of file
+
diff --git a/testcases/clientreadertestcase.py b/testcases/clientreadertestcase.py
index 39ab80bf..74993914 100644
--- a/testcases/clientreadertestcase.py
+++ b/testcases/clientreadertestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -40,4 +43,4 @@ class JailReaderTest(unittest.TestCase):
expected = ['mail-whois', {'name': 'SSH'}]
result = JailReader.splitAction(action)
self.assertEquals(expected, result)
- \ No newline at end of file
+
diff --git a/testcases/datedetectortestcase.py b/testcases/datedetectortestcase.py
index 43c7528d..70447b25 100644
--- a/testcases/datedetectortestcase.py
+++ b/testcases/datedetectortestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -64,4 +67,4 @@ class DateDetectorTest(unittest.TestCase):
#
# self.assertEqual(self.__datedetector.getTime(log), date)
# self.assertEqual(self.__datedetector.getUnixTime(log), dateUnix)
- \ No newline at end of file
+
diff --git a/testcases/failmanagertestcase.py b/testcases/failmanagertestcase.py
index 95f25b44..3c1bce22 100644
--- a/testcases/failmanagertestcase.py
+++ b/testcases/failmanagertestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/testcases/filtertestcase.py b/testcases/filtertestcase.py
index abc5dced..273dc8aa 100644
--- a/testcases/filtertestcase.py
+++ b/testcases/filtertestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
diff --git a/testcases/servertestcase.py b/testcases/servertestcase.py
index 90ca92e4..ab32eb92 100644
--- a/testcases/servertestcase.py
+++ b/testcases/servertestcase.py
@@ -1,3 +1,6 @@
+# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
+# vi: set ft=python sts=4 ts=4 sw=4 noet :
+
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
@@ -124,4 +127,4 @@ class Transmitter(unittest.TestCase):
jail = self.__server.jails[name]
self.assertEqual(jail.getFilter().failManager.size(), 0)
self.assertEqual(jail.getAction().banManager.size(), 2)
- \ No newline at end of file
+