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

Side by Side Diff: third_party/google-endpoints/future/moves/urllib/error.py

Issue 2666783008: Add google-endpoints to third_party/. (Closed)
Patch Set: Created 3 years, 10 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 from __future__ import absolute_import
2 from future.standard_library import suspend_hooks
3
4 from future.utils import PY3
5
6 if PY3:
7 from urllib.error import *
8 else:
9 __future_module__ = True
10
11 # We use this method to get at the original Py2 urllib before any renaming m agic
12 # ContentTooShortError = sys.py2_modules['urllib'].ContentTooShortError
13
14 with suspend_hooks():
15 from urllib import ContentTooShortError
16 from urllib2 import URLError, HTTPError
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698