mike01 / pypacker

:package: The fastest and simplest packet manipulation lib for Python
GNU General Public License v2.0
252 stars 46 forks source link

pypacker.hexdump defect #6

Closed zpah closed 9 years ago

zpah commented 10 years ago

Method pypacker.hexdump raise exception on bytes object: File "/home/user/pyve/pcap-tools3/lib/python3.3/site-packages/pypacker/pypacker.py", line 1046, in hexdump line = re.sub(PROG_VISIBLE_CHARS, b".", line) File "/home/user/pyve/pcap-tools3/lib/python3.3/re.py", line 170, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: can't use a string pattern on a bytes-like object

mike01 commented 10 years ago

Thanks for bug filing, this will be fixed in the next version.

mike01 commented 9 years ago

Fixed in v3.0_rc1