Fix a TypeError when downloading buildrequires files on Python 3. base64.b64decode() returns bytes, so we must open the file for writing in bytes mode, not text mode.
TypeError
base64.b64decode()
bytes
Add a unit test that verifies this behavior.
rebased onto 64a856f62b603c6fda7926a5d34fdd00ac3d405c
:thumbsup:
Commit 57e8a726 fixes this pull-request
Pull-Request has been merged by tkopecek
Metadata Update from @tkopecek: - Pull-request tagged with: no_qe
Fix a
TypeErrorwhen downloading buildrequires files on Python 3.base64.b64decode()returnsbytes, so we must open the file for writing in bytes mode, not text mode.Add a unit test that verifies this behavior.