firmianay / CTF-All-In-One

CTF竞赛权威指南
https://firmianay.gitbook.io/ctf-all-in-one/
Creative Commons Attribution Share Alike 4.0 International
4.13k stars 704 forks source link

Modernize Python 2 code to get ready for Python 3 #6

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

Make the minimal, safe changes required to convert the repo's code to be syntax compatible with both Python 2 and Python 3. There might be other changes required to complete a port to Python 3 but this PR is a minimal, safe first step.

Run: futurize --stage1 -w */.py

See Stage 1: "safe" fixes http://python-future.org/automatic_conversion.html#stage-1-safe-fixes
firmianay commented 6 years ago

Good idea, but not now, some libs like pwntools is py2 only. Thanks.

cclauss commented 6 years ago

https://github.com/arthaud/python3-pwntools