Skip to content

Commit 57109ee

Browse files
committed
fix(commandutil): Fix bug in previous commit
1 parent a1fda45 commit 57109ee

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ladybug/commandutil.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,4 @@ def process_content_to_output(content_str, output_file=None):
6161
dir_name = os.path.dirname(os.path.abspath(output_file.name))
6262
if not os.path.isdir(dir_name):
6363
os.makedirs(dir_name)
64-
if (sys.version_info < (3, 0)): # we need to manually encode it as UTF-8
65-
with open(output_file, 'w') as of:
66-
of.write(content_str.encode('utf-8'))
67-
else:
68-
with open(output_file, 'w', encoding='utf-8') as of:
69-
of.write(content_str)
64+
output_file.write(content_str)

0 commit comments

Comments
 (0)