Abstract away some types
Review Request #4906 — Created Nov. 5, 2013 and submitted — Latest diff uploaded
Abstract away some types
String and integer types have changed in python 3. In 2.x, the
strtype is a
string of bytes, and theunicodetype is a string of text. In 3.x, the
bytestype has replaced the oldstr, andstrhas replacedunicode. The
six library has abstractions for these that we can use while we're trying to
support both.Additionally, 3.x has merged the
intandlongtypes, so there's a similar
abstraction for that.
Ran unit tests.