2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +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:
Ben Pfaff
2011-08-23 09:50:46 -07:00
parent d272c10ecd
commit 8758e8a373
6 changed files with 35 additions and 35 deletions

View File

@@ -239,11 +239,11 @@ class TableSchema(object):
return json
class ColumnSchema(object):
def __init__(self, name, mutable, persistent, type):
def __init__(self, name, mutable, persistent, type_):
self.name = name
self.mutable = mutable
self.persistent = persistent
self.type = type
self.type = type_
self.unique = False
@staticmethod