From 8192bae03739b3b9cb94cd7b5ac2378219ea1f01 Mon Sep 17 00:00:00 2001 From: Josh Hansen Date: Sun, 17 May 2020 23:20:37 -0700 Subject: [PATCH] Add newlines to warning output --- chevron/renderer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chevron/renderer.py b/chevron/renderer.py index 905c2ef..01476fd 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import io +from os import linesep try: from collections.abc import Sequence, Iterator, Callable @@ -95,7 +96,7 @@ def _get_key(key, scopes, warn=False): # We couldn't find the key in any of the scopes if warn: - sys.stderr.write("Could not find key '%s'" % key) + sys.stderr.write("Could not find key '%s'%s" % (key, linesep)) return '' -- 2.47.3