-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
207448b
commit 7490893
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import zlib | ||
msg = """ | ||
Desire to know why, and how, curiosity; such as is in no living creature but man: | ||
so that man is distinguished, not only by his reason, but also by this singular passion | ||
from other animals; in whom the appetite of food, and other pleasures of sense, by | ||
predominance, take away the care of knowing causes; which is a lust of the mind, | ||
that by a perseverance of delight in the continual and indefatigable | ||
generation of knowledge, exceedeth the short vehemence of any carnal pleasure. | ||
""" | ||
|
||
compMsg = zlib.compress(msg) | ||
bad = -24 | ||
decompObj = zlib.decompressobj() | ||
decompObj.decompress(compMsg) | ||
decompObj.flush(bad) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters