From f7c363e54613e91a5bdaf3ec7462e2b0909c2385 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 19 Aug 2013 14:40:51 +0200 Subject: [PATCH] logging.warn is still deprecated --- weasyprint/css/validation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weasyprint/css/validation.py b/weasyprint/css/validation.py index 98e40237..1d7ba76a 100644 --- a/weasyprint/css/validation.py +++ b/weasyprint/css/validation.py @@ -1651,7 +1651,7 @@ def preprocess_declarations(base_url, declarations): if name in PREFIXED and not name.startswith(PREFIX): validation_error( - 'warn', + 'warning', 'the property is experimental or non-standard, use ' + PREFIX + name) continue @@ -1665,7 +1665,7 @@ def preprocess_declarations(base_url, declarations): unprefixed_name = name[len(PREFIX):] if unprefixed_name in UNPREFIXED: validation_error( - 'warn', + 'warning', 'the property was unprefixed, use ' + unprefixed_name) continue if unprefixed_name in PREFIXED: @@ -1678,7 +1678,7 @@ def preprocess_declarations(base_url, declarations): result = list(expander_(base_url, name, tokens)) except InvalidValues as exc: validation_error( - 'warn', + 'warning', exc.args[0] if exc.args and exc.args[0] else 'invalid value') continue