mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Add missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.)
This commit is contained in:
parent
5a007693c1
commit
3027b15c8e
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ def whichdb(filename):
|
|||
pass
|
||||
|
||||
# Check for dumbdbm next -- this has a .dir and and a .dat file
|
||||
try:
|
||||
f = open(filename + ".dat", "rb")
|
||||
f.close()
|
||||
f = open(filename + ".dir", "rb")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue