Diffusion Scap cd15f2d78712

WIP: cdblib: Fix py2/py3 compat

Authored by demon on May 4 2018, 9:11 PM.


WIP: cdblib: Fix py2/py3 compat


  • Use byte-array in a couple of places instead of str
  • Python3 folded IOError into OSError, so just throw OSError instead

WIP because I haven't gotten py_djb_hash()'s doctest working yet in py3

Reviewers: mmodell, Release-Engineering-Team, thcipriani

Reviewed By: Release-Engineering-Team, thcipriani

Subscribers: thcipriani

Tags: Release-Engineering-Team

Differential Revision: https://phabricator.wikimedia.org/D1036