From: Josh Hansen Date: Mon, 18 May 2020 06:20:37 +0000 (-0700) Subject: Add newlines to warning output X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=8192bae03739b3b9cb94cd7b5ac2378219ea1f01;p=chevron.git Add newlines to warning output --- 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 ''