Near Final PEP 247 - API for Cryptographic Hash Functions

Robert Amesz reqhye72zux at mailexpire.com
Fri Sep 21 18:48:24 EDT 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