2a836a88ab
The yEnc module provide a simple API for doing raw encoding/decoding of yencoded binaries, mainly for retrieving or posting to the usenet. This implementation is really simple and intended mainly as an exercise to the author but is also significantly faster than any possible pure Python implementation and it's being actually used by some Python nntp clients out there. From Mikko Tolmunen (MAINTAINER) with tweaks by Will Maier ok simon@
12 lines
397 B
Plaintext
12 lines
397 B
Plaintext
--- test/test.py.orig Thu Feb 19 01:11:46 2004
|
|
+++ test/test.py Tue Dec 11 19:36:46 2007
|
|
@@ -32,7 +32,7 @@ from binascii import crc32
|
|
from stat import *
|
|
|
|
def main():
|
|
- os.system("dd if=/dev/urandom of=sampledata bs=1M count=1")
|
|
+ os.system("dd if=/dev/urandom of=sampledata bs=1048576 count=1")
|
|
file_in = open("sampledata","r")
|
|
file_out = open("sampledata.out","w")
|
|
data = file_in.read()
|