repositori / bagas / requests

requests public ready

https://github.com/psf/requests commit 3c7baaa 48 berkas · 374 potongan 2026-11-21T15:17:50Z
48berkas
36berkas python
374potongan
python 36 markdown 5 yaml 2 text 2 toml 1 css 1 html 1
tests/compat.pypython 23 baris ditampilkan
1
import warnings
2
3
try:
4
import StringIO
5
except ImportError:
6
import io as StringIO
7
8
try:
9
from cStringIO import StringIO as cStringIO
10
except ImportError:
11
cStringIO = None
12
13
14
def u(s):
15
warnings.warn(
16
(
17
"This helper function is no longer relevant in Python 3. "
18
"Usage of this alias should be discontinued as it will be "
19
"removed in a future release of Requests."
20
),
21
DeprecationWarning,
22
)
23
return s