mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
logging.warn is still deprecated
This commit is contained in:
parent
e3d7bad55b
commit
f7c363e546
@ -1651,7 +1651,7 @@ def preprocess_declarations(base_url, declarations):
|
|||||||
|
|
||||||
if name in PREFIXED and not name.startswith(PREFIX):
|
if name in PREFIXED and not name.startswith(PREFIX):
|
||||||
validation_error(
|
validation_error(
|
||||||
'warn',
|
'warning',
|
||||||
'the property is experimental or non-standard, use '
|
'the property is experimental or non-standard, use '
|
||||||
+ PREFIX + name)
|
+ PREFIX + name)
|
||||||
continue
|
continue
|
||||||
@ -1665,7 +1665,7 @@ def preprocess_declarations(base_url, declarations):
|
|||||||
unprefixed_name = name[len(PREFIX):]
|
unprefixed_name = name[len(PREFIX):]
|
||||||
if unprefixed_name in UNPREFIXED:
|
if unprefixed_name in UNPREFIXED:
|
||||||
validation_error(
|
validation_error(
|
||||||
'warn',
|
'warning',
|
||||||
'the property was unprefixed, use ' + unprefixed_name)
|
'the property was unprefixed, use ' + unprefixed_name)
|
||||||
continue
|
continue
|
||||||
if unprefixed_name in PREFIXED:
|
if unprefixed_name in PREFIXED:
|
||||||
@ -1678,7 +1678,7 @@ def preprocess_declarations(base_url, declarations):
|
|||||||
result = list(expander_(base_url, name, tokens))
|
result = list(expander_(base_url, name, tokens))
|
||||||
except InvalidValues as exc:
|
except InvalidValues as exc:
|
||||||
validation_error(
|
validation_error(
|
||||||
'warn',
|
'warning',
|
||||||
exc.args[0] if exc.args and exc.args[0] else 'invalid value')
|
exc.args[0] if exc.args and exc.args[0] else 'invalid value')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user