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
a372de84
Commit
a372de84
authored
Sep 19, 2011
by
Jesus Cea
Browse files
Options
Browse Files
Download
Plain Diff
Close #13007: whichdb should recognize gdbm 1.9 magic numbers
parents
1cbd2ab4
bc566b00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/dbm/__init__.py
Lib/dbm/__init__.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/dbm/__init__.py
View file @
a372de84
...
...
@@ -166,7 +166,7 @@ def whichdb(filename):
return
""
# Check for GNU dbm
if
magic
==
0x13579ace
:
if
magic
in
(
0x13579ace
,
0x13579acd
,
0x13579acf
)
:
return
"dbm.gnu"
# Later versions of Berkeley db hash file have a 12-byte pad in
...
...
Misc/NEWS
View file @
a372de84
...
...
@@ -236,6 +236,8 @@ Core and Builtins
-
Issue
#
10829
:
Refactor
PyUnicode_FromFormat
(),
use
the
same
function
to
parse
the
format
string
in
the
3
steps
,
fix
crashs
on
invalid
format
strings
.
-
Issue
#
13007
:
whichdb
should
recognize
gdbm
1.9
magic
numbers
.
-
Issue
#
11246
:
Fix
PyUnicode_FromFormat
(
"%V"
)
to
decode
the
byte
string
from
UTF
-
8
(
with
replace
error
handler
)
instead
of
ISO
-
8859
-
1
(
in
strict
mode
).
Patch
written
by
Ray
Allen
.
...
...
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