Blame SOURCES/0010-open-target-file-in-binary-mode.patch

1070a0
From 41cc091c9680935c072b44b4aaa49261d66f6dc4 Mon Sep 17 00:00:00 2001
1070a0
From: Tomas Kasparek <tkasparek@redhat.com>
1070a0
Date: Mon, 5 Mar 2018 11:36:30 +0100
1070a0
Subject: [PATCH 10/17] open target file in binary mode
1070a0
1070a0
---
1070a0
 koan/utils.py | 2 +-
1070a0
 1 file changed, 1 insertion(+), 1 deletion(-)
1070a0
1070a0
diff --git a/koan/utils.py b/koan/utils.py
1070a0
index b24fa0f..28c8af1 100644
1070a0
--- a/koan/utils.py
1070a0
+++ b/koan/utils.py
1070a0
@@ -137,7 +137,7 @@ def urlgrab(url,saveto):
1070a0
     see comments for urlread as to why it's this way.
1070a0
     """
1070a0
     data = urlread(url)
1070a0
-    fd = open(saveto, "w+")
1070a0
+    fd = open(saveto, "w+b")
1070a0
     fd.write(data)
1070a0
     fd.close()
1070a0
 
1070a0
-- 
1070a0
2.5.5
1070a0