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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user