diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-05-05 12:30:48 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-05-05 14:11:08 -0700 |
commit | dde7b5cd2923bf49e64d1e3585c5a96eca1e0cf2 (patch) | |
tree | 4eb466fd3d0c7be3e994d4344f0cf06ae391d554 /python/ovs | |
parent | 696d1bcf6c8e3504209db76abde0a7f2d028159c (diff) | |
download | openvswitch-dde7b5cd2923bf49e64d1e3585c5a96eca1e0cf2.tar.gz |
vlog: Use python 2.4 compatible functions.
Xenserver uses python 2.4.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'python/ovs')
-rw-r--r-- | python/ovs/vlog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ovs/vlog.py b/python/ovs/vlog.py index 580b1bc23..1bd42c46f 100644 --- a/python/ovs/vlog.py +++ b/python/ovs/vlog.py @@ -107,12 +107,12 @@ class Vlog: ms = delta.microseconds / 1000 tmp = self._format_field(tmp, m, str(ms)) elif "t" in m: - subprogram = threading.current_thread().name + subprogram = threading.currentThread().getName() if subprogram == "MainThread": subprogram = "main" tmp = self._format_field(tmp, m, subprogram) elif "T" in m: - subprogram = threading.current_thread().name + subprogram = threading.currentThread().getName() if not subprogram == "MainThread": subprogram = "({})".format(subprogram) else: |