securisec / chepy

Chepy is a python lib/cli equivalent of the awesome CyberChef tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove_whitespace() prints replacement characters

geekscrapy opened this issue · comments

Describe the bug
When remove_whitespace() is used a list of replacement characters is printed to the terminal:

[' ', '\r', '\n', '\t', '\x0c']

To Reproduce

$ python -V
Python 3.7.5
$ python
Python 3.7.5 (default, Nov  1 2019, 02:16:32)
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from chepy import Chepy
>>> c = (
...     Chepy("lots of white space s")
...     .remove_whitespace()
... )
[' ', '\r', '\n', '\t', '\x0c']
>>> print(c.o)
lotsofwhitespaces