removed whitespace check that was not necessary

This commit is contained in:
Kevin Froman 2020-04-24 11:28:18 -05:00
parent 3a69b00ec1
commit ea04c5ea2c
3 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,11 @@
This project uses Semantic Versioning
## 1.1.2
Fixed redundant whitespace check when filtering printable chars.
## 1.1.1
Fixed setup.py project URL

View File

@ -7,7 +7,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
packages = find_packages(exclude=['contrib', 'docs', 'tests'])
setup(name='youandme',
version='1.1.1',
version='1.1.2',
description='Simple private data sharing via bytearrays, Tor tunneling and metadata paranoia',
long_description=long_description,
long_description_content_type='text/markdown',

View File

@ -90,8 +90,7 @@ def chat(mode, send_data, recv_data, alpha):
if char == "\n" or char == "\r\n" or len(display_buffer) > 100:
while len(display_buffer) != 0:
char = display_buffer.pop(0)
if alpha and char not in printable and \
char not in ('\n', '\r', ' ', '\t'):
if alpha and char not in printable:
continue
print("\033[1;33m" + char + "\033[0m", end="")