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.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb65d879b510681bbe8753b912a20181f3e149b25c9bee422df34c9b4961ea64 |
|
MD5 | 386ce6b08e32c737edeefbde006d878e |
|
BLAKE2b-256 | dd5ce68fd0196f465523ba680897e448a71ddad083134e329a05572f19583ea4 |