mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
This commit is contained in:
parent
437a0e60ba
commit
3bbc62e9c2
18 changed files with 222 additions and 85 deletions
|
|
@ -161,7 +161,7 @@ static typeobject MD5type = {
|
|||
/* MD5 functions */
|
||||
|
||||
static object *
|
||||
MD5_md5(self, args)
|
||||
MD5_new(self, args)
|
||||
object *self;
|
||||
object *args;
|
||||
{
|
||||
|
|
@ -188,7 +188,8 @@ MD5_md5(self, args)
|
|||
/* List of functions exported by this module */
|
||||
|
||||
static struct methodlist md5_functions[] = {
|
||||
{"md5", (method)MD5_md5},
|
||||
{"new", (method)MD5_new},
|
||||
{"md5", (method)MD5_new}, /* Backward compatibility */
|
||||
{NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue