summaryrefslogtreecommitdiff
path: root/python/ovs/reconnect.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/reconnect.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/reconnect.py')
-rw-r--r--python/ovs/reconnect.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/ovs/reconnect.py b/python/ovs/reconnect.py
index 5fc96bc87..757e7304d 100644
--- a/python/ovs/reconnect.py
+++ b/python/ovs/reconnect.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.
@@ -332,15 +332,15 @@ class Reconnect(object):
% self.name)
else:
if self.passive:
- type = "listen"
+ type_ = "listen"
else:
- type = "connection"
+ type_ = "connection"
if error > 0:
logging.warning("%s: %s attempt failed (%s)"
- % (self.name, type, os.strerror(error)))
+ % (self.name, type_, os.strerror(error)))
else:
self.info_level("%s: %s attempt timed out"
- % (self.name, type))
+ % (self.name, type_))
if (self.state in (Reconnect.Active, Reconnect.Idle)):
self.last_disconnected = now