Skip to content

Python2 support #1741

@naweiss

Description

@naweiss

hashes.py uses hashlib.algorithms_guaranteed:

for _algo in hashlib.algorithms_guaranteed:

According to python documentation algorithms_guaranteed exists from version 2.7.9 and up.

But i don't knonw if Python2 support will be dropped soon for pwntools.
So, for now setup.py should probably specify python_requires = '>=2.7.9'.

Edit: It worth mantioning I needed pwntools on a Python 2.7.6 machine so, if Python2 support is important, somthing like:
hashlib.algorithms_guaranteed or hashlib.algorithms
Would probably be batter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions