Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0f7f9c35
Commit
0f7f9c35
authored
Nov 24, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete bsddb from sys.modules if _bsddb cannot be imported.
parent
0b982403
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Lib/bsddb/__init__.py
Lib/bsddb/__init__.py
+8
-1
No files found.
Lib/bsddb/__init__.py
View file @
0f7f9c35
...
...
@@ -43,7 +43,14 @@ People interested in the more advanced capabilites of Berkeley DB 3.x
should use the bsddb3.db module directly.
"""
import
_bsddb
try
:
import
_bsddb
except
ImportError
:
# Remove ourselves from sys.modules
import
sys
del
sys
.
modules
[
__name__
]
raise
# bsddb3 calls it _db
_db
=
_bsddb
__version__
=
_db
.
__version__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment