summaryrefslogtreecommitdiff
path: root/python/ovs/process.py
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-08-23 09:50:46 -0700
committerBen Pfaff <blp@nicira.com>2011-08-24 11:57:42 -0700
commit8758e8a373338e409d7f2863ee91e01060f35628 (patch)
tree8006fedcf72ad981c9b98d15c80b0aee376c0a9a /python/ovs/process.py
parentd272c10ecdba8a5dc7adba30c98d8d4273dfd1ae (diff)
downloadopenvswitch-8758e8a373338e409d7f2863ee91e01060f35628.tar.gz
python: Avoid using 'type' as a variable name.
'type' is a Python built-in function, so it's best to avoid using it as a variable name. Reported-by: Reid Price <reid@nicira.com>
Diffstat (limited to 'python/ovs/process.py')
-rw-r--r--python/ovs/process.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/ovs/process.py b/python/ovs/process.py
index 7367f7939..f8182f197 100644
--- a/python/ovs/process.py
+++ b/python/ovs/process.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 Nicira Networks
+# Copyright (c) 2010, 2011 Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,8 +15,8 @@
import os
import signal
-def _signal_status_msg(type, signr):
- s = "%s by signal %d" % (type, signr)
+def _signal_status_msg(type_, signr):
+ s = "%s by signal %d" % (type_, signr)
for name in signal.__dict__:
if name.startswith("SIG") and getattr(signal, name) == signr:
return "%s (%s)" % (s, name)