Skip to content

Commit

Permalink
Fix warning that bytes != string (#1893)
Browse files Browse the repository at this point in the history
* Fix warning that bytes != string

* Update CHANGELOG
  • Loading branch information
heapcrash authored May 17, 2021
1 parent 3c85afd commit 29fd2fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ The table below shows which release corresponds to each branch, and what date th
- [#1733][1733] Update libc headers -> more syscalls available!
- [#1876][1876] add `self.message` and change `sys.exc_type` to `sys.exec_info()` in PwnlibException
- [#1877][1877] encoders error message handles when `avoid` is bytes in python3
- [#1892](1892) Silence SIGPIPE error for "pwn phd"
- [#1892][1892] Silence SIGPIPE error for "pwn phd"
- [#1893][1893] Fix bytes warning in "pwn cyclic"

[1733]: https://github.com/Gallopsled/pwntools/pull/1733
[1876]: https://github.com/Gallopsled/pwntools/pull/1876
[1877]: https://github.com/Gallopsled/pwntools/pull/1877
[1892]: https://github.com/Gallopsled/pwntools/pull/1892
[1893]: https://github.com/Gallopsled/pwntools/pull/1893

## 4.6.0 (`beta`)

Expand Down
3 changes: 3 additions & 0 deletions pwnlib/commandline/cyclic.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def main(args):
if args.lookup:
pat = args.lookup

if six.PY3:
pat = bytes(pat, encoding='utf-8')

try:
pat = int(pat, 0)
except ValueError:
Expand Down

0 comments on commit 29fd2fe

Please sign in to comment.