gabrielfalcao/HTTPretty — pull request #132 by CyrilRoelandteNovance (2013-12-18 11:42:39+00:00)
Title: Remove bytes in calls to str.split()

It is useless to write foo.split(b'bar') rather than foo.split(bar). In Python
2, this is exactly the same thing:

>>> 'fooXbar'.split('X')
['foo', 'bar']
>>> 'fooXbar'.split(b'X')
['foo', 'bar']

In Python 3, using bytes in split() is an error:

>>> 'fooXbar'.split('X')
['foo', 'bar']
>>> 'fooXbar'.split(b'X')
Traceback (most recent call last):
File "", line 1, in
TypeError: Can't convert 'bytes' object to str implicitly