Near Final PEP 247 - API for Cryptographic Hash Functions

Robert Amesz reqhye72zux at mailexpire.com
Sat Sep 22 00:48:24 CEST 2001


Oleg Broytmann wrote:

>    BUFSIZE = 16*1024
>    def process_file(self, f):
>       if type(f) == type(''): # If f is string - use it as file's
>       name 
>          infile = open(f, 'r')
> [...]

Please make that 'rb'.


Robert Amesz






More information about the Python-list mailing list