]> Devi Nivas Git - chevron.git/commitdiff
Add newlines to warning output
authorJosh Hansen <hansen.joshuaa@gmail.com>
Mon, 18 May 2020 06:20:37 +0000 (23:20 -0700)
committerJosh Hansen <hansen.joshuaa@gmail.com>
Mon, 18 May 2020 06:20:37 +0000 (23:20 -0700)
chevron/renderer.py

index 905c2ef5bc259a89e23eb7fe1416b2b87164e465..01476fd3202b7fbe14e5b45835ef34cd8674cc62 100644 (file)
@@ -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 ''