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

Russell Bryant russell at ovn.org
Mon Dec 21 20:47:10 UTC 2015


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 at ovn.org>
---
 python/ovs/vlog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.5.0




More information about the dev mailing list