diff --git a/pyspedas/projects/maven/download_files_utilities.py b/pyspedas/projects/maven/download_files_utilities.py index 94f2e9d3..a14fa0b1 100644 --- a/pyspedas/projects/maven/download_files_utilities.py +++ b/pyspedas/projects/maven/download_files_utilities.py @@ -230,7 +230,11 @@ def merge_orbit_files(): f.readline() f.readline() skip_2_lines = True - code.write(f.read()) + content=f.read() + if type(content) is bytes: + code.write(str(content)) + else: + code.write(content) return