Skip to content

Commit

Permalink
make python 2 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-vk committed Nov 30, 2022
1 parent 62aa054 commit 7238ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfile_parse/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def parent_images(self):
in_stage = True
image, _ = image_from(instr['value'])
if image is not None:
image = WordSplitter(image, args=top_args).dequote()
image = WordSplitter(image.to_str(), args=top_args).dequote()
parents.append(image)
return parents

Expand Down
2 changes: 1 addition & 1 deletion dockerfile_parse/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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(b2u(str(s)))
self.stream = StringIO(s)
self.args = args
self.envs = envs

Expand Down

0 comments on commit 7238ac5

Please sign in to comment.