From 055cca97bf8ed99dd7936a33887aed980bba0a16 Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Tue, 4 Nov 2025 21:17:02 -0800 Subject: [PATCH] fix(commandutil): Fix bug in previous commit --- ladybug/commandutil.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ladybug/commandutil.py b/ladybug/commandutil.py index cfba6a6b..28bccb65 100644 --- a/ladybug/commandutil.py +++ b/ladybug/commandutil.py @@ -61,9 +61,4 @@ def process_content_to_output(content_str, output_file=None): dir_name = os.path.dirname(os.path.abspath(output_file.name)) if not os.path.isdir(dir_name): os.makedirs(dir_name) - if (sys.version_info < (3, 0)): # we need to manually encode it as UTF-8 - with open(output_file, 'w') as of: - of.write(content_str.encode('utf-8')) - else: - with open(output_file, 'w', encoding='utf-8') as of: - of.write(content_str) + output_file.write(content_str)