mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user