Use the more modern six library to handle urllib, cStringIO, and cPickle.
Review Request #4924 — Created Nov. 8, 2013 and submitted — Latest diff uploaded
Use the more modern
sixlibrary to handleurllib,cStringIO, andcPickle.The
urlparse,urllib, andurllib2modules have been significantly reworked in
Python 3 to provide a much more consistent interface.Additionally, the 'fast' versions of
StringIOandpickleare now merged with
the 'slow' versions, so in the future we'll be able to just useio.StringIOand
picklewithout the fallbacks.
sixhas some adaptations to help with this for the time being. It's not as
pretty as I would like, but it works.
- Ran djblets unit tests.
- Ran Review Board unit tests.