Skip to content
Myr

cstring io fix for py3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent b82e72e · Browse files · 1 file+8 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−4 removed

  • other:+8 added−4 removed

1 file+8 added−4 removed

modified:test_requests.py+8 added-4 removed
1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import sys5import unittest67if sys.version_info >= (3,0):8 from io import StringIO9else:6try:7 from cStringIO import StringIO8except ImportError:9 from StringIO import StringIO10 try:11 from cStringIO import StringIO12 except ImportError:13 from StringIO import StringIO1415import requests1617
78 unmodified lines