2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

python: Change 'clone' function names to 'copy'.

It seems that 'copy' is the proper name for this kind of function in
Python, based on the existence of dict.copy().
This commit is contained in:
Ben Pfaff
2011-09-15 15:31:12 -07:00
parent 49c541dc11
commit 843fb01b61
2 changed files with 6 additions and 6 deletions

View File

@@ -241,7 +241,7 @@ class Datum(object):
def __contains__(self, item):
return item in self.values
def clone(self):
def copy(self):
return Datum(self.type, dict(self.values))
@staticmethod