From 0892b5e140336e6cbaaacd35f56b6139dde51cd1 Mon Sep 17 00:00:00 2001 From: Tim van Katwijk Date: Mon, 26 Dec 2022 21:18:52 +0100 Subject: [PATCH] stringIO always needs a string. Signed-off-by: Tim van Katwijk --- dockerfile_parse/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfile_parse/util.py b/dockerfile_parse/util.py index af8f4d9..c479924 100644 --- a/dockerfile_parse/util.py +++ b/dockerfile_parse/util.py @@ -48,7 +48,7 @@ def __init__(self, s, args=None, envs=None): :param envs: dict, environment variables to use; if None, do not attempt substitution """ - self.stream = StringIO(s) + self.stream = StringIO(str(s)) self.args = args self.envs = envs