mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 09:46:03 +01:00
...
This commit is contained in:
parent
7af7030d98
commit
c4361f88c4
1 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,8 @@ def has_key(self, key):
|
|||
return key in object.__getattribute__(self, '_data')
|
||||
|
||||
def deepcopy(self):
|
||||
''' Do not use this method unless you know what you are doing, if you want to create a simple clone of
|
||||
this object, use :method:`deepcopy_metadata` instead. '''
|
||||
m = Metadata(None)
|
||||
m.__dict__ = copy.deepcopy(self.__dict__)
|
||||
object.__setattr__(m, '_data', copy.deepcopy(object.__getattribute__(self, '_data')))
|
||||
|
|
|
|||
Loading…
Reference in a new issue