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

Side by Side Diff: third_party/google-endpoints/future/moves/dbm/__init__.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.utils import PY3
3
4 if PY3:
5 from dbm import *
6 else:
7 __future_module__ = True
8 from whichdb import *
9 from anydbm import *
10
11 # Py3.3's dbm/__init__.py imports ndbm but doesn't expose it via __all__.
12 # In case some (badly written) code depends on dbm.ndbm after import dbm,
13 # we simulate this:
14 if PY3:
15 from dbm import ndbm
16 else:
17 try:
18 from future.moves.dbm import ndbm
19 except ImportError:
20 ndbm = None
OLDNEW
« no previous file with comments | « third_party/google-endpoints/future/moves/copyreg.py ('k') | third_party/google-endpoints/future/moves/dbm/dumb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698