From 8758e8a373338e409d7f2863ee91e01060f35628 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Aug 2011 09:50:46 -0700 Subject: 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 --- python/ovs/process.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/ovs/process.py') 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) -- cgit v1.2.1