python: Inherit from object.
authorRussell Bryant <russell@ovn.org>
Sun, 13 Dec 2015 04:11:47 +0000 (23:11 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 5 Jan 2016 23:17:56 +0000 (18:17 -0500)
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.2, and some Python 2 code won't work as expected without it.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
python/ovs/vlog.py

index 70d0738..0065020 100644 (file)
@@ -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