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
e04b627a
Commit
e04b627a
authored
May 04, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove old undocumented compat interfaces in hashlib and pwd #5881
parent
ec75312e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
16 deletions
+6
-16
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_hashopenssl.c
Modules/_hashopenssl.c
+0
-6
Modules/pwdmodule.c
Modules/pwdmodule.c
+3
-4
Modules/sha256module.c
Modules/sha256module.c
+0
-3
Modules/sha512module.c
Modules/sha512module.c
+0
-3
No files found.
Misc/NEWS
View file @
e04b627a
...
...
@@ -176,6 +176,9 @@ Library
Extension Modules
-----------------
- Issue #5881: Remove old undocumented compatibility interfaces in hashlib and
pwd.
- Issue #5463: In struct module, remove deprecated float coercion
for integer type codes: struct.pack('L', 0.3) should now raise
an error. The _PY_STRUCT_FLOAT_COERCE constant has been removed.
...
...
Modules/_hashopenssl.c
View file @
e04b627a
...
...
@@ -281,12 +281,6 @@ static PyGetSetDef EVP_getseters[] = {
(
getter
)
EVP_get_block_size
,
NULL
,
NULL
,
NULL
},
/* the old md5 and sha modules support 'digest_size' as in PEP 247.
* the old sha module also supported 'digestsize'. ugh. */
{
"digestsize"
,
(
getter
)
EVP_get_digest_size
,
NULL
,
NULL
,
NULL
},
{
NULL
}
/* Sentinel */
};
...
...
Modules/pwdmodule.c
View file @
e04b627a
...
...
@@ -203,13 +203,12 @@ PyInit_pwd(void)
if
(
m
==
NULL
)
return
NULL
;
if
(
!
initialized
)
if
(
!
initialized
)
{
PyStructSequence_InitType
(
&
StructPwdType
,
&
struct_pwd_type_desc
);
initialized
=
1
;
}
Py_INCREF
((
PyObject
*
)
&
StructPwdType
);
PyModule_AddObject
(
m
,
"struct_passwd"
,
(
PyObject
*
)
&
StructPwdType
);
/* And for b/w compatibility (this was defined by mistake): */
PyModule_AddObject
(
m
,
"struct_pwent"
,
(
PyObject
*
)
&
StructPwdType
);
initialized
=
1
;
return
m
;
}
Modules/sha256module.c
View file @
e04b627a
...
...
@@ -533,9 +533,6 @@ static PyGetSetDef SHA_getseters[] = {
static
PyMemberDef
SHA_members
[]
=
{
{
"digest_size"
,
T_INT
,
offsetof
(
SHAobject
,
digestsize
),
READONLY
,
NULL
},
/* the old md5 and sha modules support 'digest_size' as in PEP 247.
* the old sha module also supported 'digestsize'. ugh. */
{
"digestsize"
,
T_INT
,
offsetof
(
SHAobject
,
digestsize
),
READONLY
,
NULL
},
{
NULL
}
/* Sentinel */
};
...
...
Modules/sha512module.c
View file @
e04b627a
...
...
@@ -599,9 +599,6 @@ static PyGetSetDef SHA_getseters[] = {
static
PyMemberDef
SHA_members
[]
=
{
{
"digest_size"
,
T_INT
,
offsetof
(
SHAobject
,
digestsize
),
READONLY
,
NULL
},
/* the old md5 and sha modules support 'digest_size' as in PEP 247.
* the old sha module also supported 'digestsize'. ugh. */
{
"digestsize"
,
T_INT
,
offsetof
(
SHAobject
,
digestsize
),
READONLY
,
NULL
},
{
NULL
}
/* Sentinel */
};
...
...
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