<s> import sys <EOL> import hashlib <EOL> class HashOutput : <EOL> def __init__ ( self ) : <EOL> self . m = hashlib . md5 ( ) <EOL> def write ( self , string ) : <EOL> self . m . update ( string ) <EOL> def md5hash ( self ) : <EOL> return self . m . hexdigest ( ) <EOL> hash_output = HashOutput ( ) <EOL> old_stdout = sys . stdout <EOL> sys . stdout = hash_output <EOL> print "<STR_LIT>" <EOL> sys . stdout = old_stdout <EOL> print hash_output . md5hash ( ) </s>
