mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
7af7030d98
commit
c4361f88c4
@ -178,6 +178,8 @@ class Metadata(object):
|
||||
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…
x
Reference in New Issue
Block a user