Skip to content

cruft from the py3.8 era #13565

Closed
Closed

Description

@drammock

per the # TODO comment, patch is needed here too?

# TODO: no longer needed when py3.9 is minimum supported version
def _empty_hash(kind="md5"):
func = getattr(hashlib, kind)
if "usedforsecurity" in inspect.signature(func).parameters:
return func(usedforsecurity=False)
else:
return func()

Originally posted by @varunkasyap in #13561 (comment)

Activity

  1. drammock commented on Dec 26, 2025

    @drammock
    MemberAuthor

    @varunkasyap do you want to tackle this one too?

  2. varunkasyap commented on Dec 26, 2025

    @varunkasyap
    Contributor

    @varunkasyap do you want to tackle this one too?

    Hi @drammock ,
    Yes, willing to contribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions