You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/10/16 22:45:17 UTC

svn commit: r1913034 - /comdev/projects.apache.org/trunk/scripts/committee_info.py

Author: sebb
Date: Mon Oct 16 22:45:17 2023
New Revision: 1913034

URL: http://svn.apache.org/viewvc?rev=1913034&view=rev
Log:
Oops, encoding does not apply to binary output

Modified:
    comdev/projects.apache.org/trunk/scripts/committee_info.py

Modified: comdev/projects.apache.org/trunk/scripts/committee_info.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/committee_info.py?rev=1913034&r1=1913033&r2=1913034&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/committee_info.py (original)
+++ comdev/projects.apache.org/trunk/scripts/committee_info.py Mon Oct 16 22:45:17 2023
@@ -70,7 +70,7 @@ def get_url_if_newer(url, folder, name):
         lastMod = response.headers['Last-Modified']
         lastModT = calendar.timegm(time.strptime(lastMod, HTTP_TIME_FORMAT))
         outFile = path + ".tmp"
-        with open(outFile,'wb', encoding='utf-8') as f:
+        with open(outFile,'wb') as f:
             f.write(response.read())
             f.close()