diff options
| author | Thomas Cross <tcross@csgactuarial.com> | 2020-01-28 09:53:26 -0600 |
|---|---|---|
| committer | Chris Dent <cdent@anticdent.org> | 2020-01-28 15:53:26 +0000 |
| commit | b9d39dc9ff6c6d70b00bc2b764fb4fc6b38eb239 (patch) | |
| tree | 218eaa9aec879b5a64063f016134450f82b8aa1c /paste/httpserver.py | |
| parent | e9827316dfb827a8005dbfc9b370edd7d330773e (diff) | |
| download | paste-git-b9d39dc9ff6c6d70b00bc2b764fb4fc6b38eb239.tar.gz | |
add six to check for python 2 or 3 specific implementation (#48)
* StringIO imports differently in python 3 - use six for compatibility
* Paste requires bytes like objects. in python 2 cStringIO works fine, but in python three it needs to use io.BytesIO
* simplify imports and logic by using six.BytesIO exclusively for parsing body content
Diffstat (limited to 'paste/httpserver.py')
0 files changed, 0 insertions, 0 deletions
