compat.py
This file
Path
tests/compat.py
21 lines · 333 bytes · Python
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than e4d214d point at it.
Merge pull request #4749 from derlin/masterNate Prewittbefore adoptione4d214d
lines 1–21why, one step back1# -*- coding: utf-8 -*-23from requests.compat import is_py3456try:7 import StringIO8except ImportError:9 import io as StringIO1011try:12 from cStringIO import StringIO as cStringIO13except ImportError:14 cStringIO = None1516if is_py3:17 def u(s):18 return s19else:20 def u(s):21 return s.decode('unicode-escape')