/
niceSOFT
/
python3-requests
Обзор
Документация
Войти
/
niceSOFT
/
python3-requests
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/compat.py
23 строки
480 B
Nate Prewitt
Add automatic code formatting to Requests (#6095)
29 апр 2022, 22:16
Не верифицирован
29 апр 2022, 22:16
2a6f290
Код
Авторство
О чём код?
import warnings try: import StringIO except ImportError: import io as StringIO try: from cStringIO import StringIO as cStringIO except ImportError: cStringIO = None def u(s): warnings.warn( ( "This helper function is no longer relevant in Python 3. " "Usage of this alias should be discontinued as it will be " "removed in a future release of Requests." ), DeprecationWarning, ) return s