Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: recipe_engine/third_party/requests/tests/compat.py

Issue 2164713003: Vendor requests. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix deps.pyl Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # coding: utf-8
2 from requests.compat import is_py3
3
4
5 try:
6 import StringIO
7 except ImportError:
8 import io as StringIO
9
10 try:
11 from cStringIO import StringIO as cStringIO
12 except ImportError:
13 cStringIO = None
14
15 if is_py3:
16 def u(s):
17 return s
18 else:
19 def u(s):
20 return s.decode('unicode-escape')
OLDNEW
« no previous file with comments | « recipe_engine/third_party/requests/tests/__init__.py ('k') | recipe_engine/third_party/requests/tests/conftest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698