#3577 kojikamid: write buildrequires files as bytes
Merged by tkopecek. Opened by ktdreyer.
ktdreyer/koji kojikamid-getfile-binary  into  master

Download 3577.patch

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.

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

Metadata