diff mbox

[ovs-dev,10/55] python: Inherit from object.

Message ID 1450730875-18083-11-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
class Vlog now inherits from "object".  This is a "new style" Python
class, which isn't new at all at this point.  This was introduced back
in Python 2.x, and some Python 2 code won't work as expected without it.
In Python 3, this happens implicitly.

Signed-off-by: Russell Bryant <russell@ovn.org>
---
 python/ovs/vlog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/python/ovs/vlog.py b/python/ovs/vlog.py
index 70d0738..0065020 100644
--- a/python/ovs/vlog.py
+++ b/python/ovs/vlog.py
@@ -51,7 +51,7 @@  def get_level(level_str):
     return LEVELS.get(level_str.lower())
 
 
-class Vlog:
+class Vlog(object):
     __inited = False
     __msg_num = 0
     __start_time = 0