<s> from pysqlite2 import dbapi2 as sqlite3 <EOL> import md5 <EOL> def md5sum ( t ) : <EOL> return md5 . md5 ( t ) . hexdigest ( ) <EOL> con = sqlite3 . connect ( "<STR_LIT>" ) <EOL> con . create_function ( "<STR_LIT>" , <NUM_LIT:1> , md5sum ) <EOL> cur = con . cursor ( ) <EOL> cur . execute ( "<STR_LIT>" , ( "<STR_LIT:foo>" , ) ) <EOL> print cur . fetchone ( ) [ <NUM_LIT:0> ] </s>
