From be1755cac12afb93d9c74ce9c5e0295c8ba1a090 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 11 Oct 2004 10:21:56 +0000 Subject: [PATCH] - Change quoting style git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@16 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- firewall/iptables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall/iptables.py b/firewall/iptables.py index 8206e631..c06a2dd3 100644 --- a/firewall/iptables.py +++ b/firewall/iptables.py @@ -29,9 +29,9 @@ from firewall import Firewall class Iptables(Firewall): def banIP(self, ip): - query = 'iptables -I INPUT 1 -i eth0 -s '+ip+' -j DROP' + query = "iptables -I INPUT 1 -i eth0 -s "+ip+" -j DROP" return query def unBanIP(self, ip): - query = 'iptables -D INPUT -i eth0 -s '+ip+' -j DROP' + query = "iptables -D INPUT -i eth0 -s "+ip+" -j DROP" return query