sha256: update function does not work under Python2.3
Status: Beta
Brought to you by:
codon
Calling sha256's update function fails for me (Python 2.3)
because the test for a string type is broken.
(str(type("")) gives "<type 'str'>".
As the SWIG code already checks for a string type
I suggest to just remove the whole check as redundant
and broken.
Logged In: NO
it would be better to import types, then do
if type(data) != types.StringType:
This works for python2.1 onwards.
Logged In: NO
it would be better to import types, then do
if type(data) != types.StringType:
This works for python2.1 onwards.