This commit is contained in:
Kovid Goyal 2024-10-20 18:00:10 +05:30
parent 9891f149e1
commit 9beed389fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -10,6 +10,7 @@ from collections.abc import MutableMapping, MutableSequence
from copy import deepcopy from copy import deepcopy
from functools import wraps from functools import wraps
from calibre.ebooks.metadata.book import STANDARD_METADATA_FIELDS
from calibre.ebooks.metadata.book.base import ALL_METADATA_FIELDS, NULL_VALUES, SIMPLE_GET, TOP_LEVEL_IDENTIFIERS, Metadata from calibre.ebooks.metadata.book.base import ALL_METADATA_FIELDS, NULL_VALUES, SIMPLE_GET, TOP_LEVEL_IDENTIFIERS, Metadata
from calibre.ebooks.metadata.book.formatter import SafeFormat from calibre.ebooks.metadata.book.formatter import SafeFormat
from calibre.utils.date import utcnow from calibre.utils.date import utcnow
@ -387,7 +388,6 @@ class ProxyMetadata(Metadata):
"Use the explicit methods such as all_field_keys()") "Use the explicit methods such as all_field_keys()")
def has_key(self, key): def has_key(self, key):
from calibre.ebooks.metadata.book import STANDARD_METADATA_FIELDS
return key in STANDARD_METADATA_FIELDS or key in ga(self, '_user_metadata') return key in STANDARD_METADATA_FIELDS or key in ga(self, '_user_metadata')
def deepcopy(self, **kwargs): def deepcopy(self, **kwargs):