This branch fixes two Python 3 conversion problems in Overdrive code:
When generating the Authorization header, keys and secrets like foo were being encoded as b'foo', leading to authentication failures.
In one case, Unicode strings were converted to JSON before processing, but bytestrings (which we actually get from Overdrive) were being left alone, causing a crash.
In addition to the unit tests, I ran the overdrive_format_sweep, overdrive_monitor_recent, and overdrive_new_titles scripts using the QA database. Without the first fix in place, all three scripts would fail immediately. Without the second fix in place, a couple of these scripts (overdrive_monitor_recent and overdrive_format_sweep, I think) would fail pretty quickly.
This branch fixes two Python 3 conversion problems in Overdrive code:
foo
were being encoded asb'foo'
, leading to authentication failures.In addition to the unit tests, I ran the overdrive_format_sweep, overdrive_monitor_recent, and overdrive_new_titles scripts using the QA database. Without the first fix in place, all three scripts would fail immediately. Without the second fix in place, a couple of these scripts (overdrive_monitor_recent and overdrive_format_sweep, I think) would fail pretty quickly.