remove control characters from a string
Project description
Installation
$ [sudo] pip install control-characters
Features
fixes plistlib
problem with control characters
>>> plistlib.dump(data, open(path, 'wb'))
...
ValueError: strings can't contains control characters; use bytes instead
Examples
environment variables without control characters:
env = dict((k, control_characters.remove(v)) for k, v in os.environ.items())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for control-characters-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3477c5ae1276cc3a901871efb1023b599c726b501a3db2700be00fcda88b417b |
|
MD5 | a4f20461ccd6622731e9ebb7cbe83a9c |
|
BLAKE2b-256 | a5c21aaa859cc025d5561545c88795bb8a403183b0c424200b78121a1bca8d1d |