8000 bpo-1635741: Port hashlib modules to multiphase init (PEP 489) by koubaa · Pull Request #21818 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: Port hashlib modules to multiphase init (PEP 489) #21818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Sep 6, 2020
Prev Previous commit
Next Next commit
pep7
  • Loading branch information
koubaa committed Aug 31, 2020
commit 2cfcb12e022f0550ba2776279c654623534e707c
6 changes: 4 additions & 2 deletions Modules/sha512module.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,13 @@ static inline SHA512State* sha512_get_state(PyObject *module)
return (SHA512State *)state;
}

static SHAobject *newSHA384object(SHA512State *st) {
static SHAobject *newSHA384object(SHA512State *st)
{
return (SHAobject *)PyObject_New(SHAobject, st->sha384_type);
}

static SHAobject *newSHA512object(SHA512State *st) {
static SHAobject *newSHA512object(SHA512State *st)
{
return (SHAobject *)PyObject_New(SHAobject, st->sha512_type);
}

Expand Down
0