summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRussell Bryant <russell@ovn.org>2016-01-06 15:23:08 -0500
committerRussell Bryant <russell@ovn.org>2016-01-22 08:25:27 -0500
commit03756304cf67a4f241ea124696ab0dbf40d9d679 (patch)
tree35b923fa07f8761061b1a2cc5d155702d1639f16 /debian
parentcb96c1b27e502c591eeeb831f04d92b400d757f4 (diff)
downloadopenvswitch-03756304cf67a4f241ea124696ab0dbf40d9d679.tar.gz
python: Remove old style classes.
Python 3 removed support for "old-style classes". Classes should always inherit from object to get consistent behavior between Python 2 and 3. Enable a flake8 warning to help prevent regressions in the future. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/ovs-monitor-ipsec4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec
index 15022947c..091896dc4 100755
--- a/debian/ovs-monitor-ipsec
+++ b/debian/ovs-monitor-ipsec
@@ -55,7 +55,7 @@ def unixctl_exit(conn, unused_argv, unused_aux):
# Class to configure the racoon daemon, which handles IKE negotiation
-class Racoon:
+class Racoon(object):
# Default locations for files
conf_file = "/etc/racoon/racoon.conf"
cert_dir = "/etc/racoon/certs"
@@ -259,7 +259,7 @@ path certificate "%s";
# Class to configure IPsec on a system using racoon for IKE and setkey
# for maintaining the Security Association Database (SAD) and Security
# Policy Database (SPD). Only policies for GRE are supported.
-class IPsec:
+class IPsec(object):
def __init__(self):
self.sad_flush()
self.spd_flush()