From e13c463b4303d7c8d7d00afe992da6bf14c36bc8 Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Tue, 17 Dec 2019 14:18:54 -0700
Subject: [PATCH] GOESIMFV283Factory python3 compatibility

---
 geomagio/imfv283/GOESIMFV283Factory.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/geomagio/imfv283/GOESIMFV283Factory.py b/geomagio/imfv283/GOESIMFV283Factory.py
index 826ea0b19..474c32149 100644
--- a/geomagio/imfv283/GOESIMFV283Factory.py
+++ b/geomagio/imfv283/GOESIMFV283Factory.py
@@ -1,5 +1,5 @@
 """Factory to load IMFV283 files from an input StreamIMFV283Factory."""
-from __future__ import absolute_import, print_function
+from __future__ import absolute_import, print_function, unicode_literals
 
 from .IMFV283Factory import IMFV283Factory
 import subprocess
@@ -186,5 +186,5 @@ class GOESIMFV283Factory(IMFV283Factory):
         if not os.path.exists(criteria_dir):
             os.makedirs(criteria_dir)
         with open(criteria_file, 'wb') as fh:
-            fh.write(''.join(buf))
+            fh.write(''.join(buf).encode())
             fh.close()
-- 
GitLab