From a73a964e51247ed169d322c725a3a18859f109a3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 14 Jun 2021 00:00:37 +0000 Subject: python, hg: tow outside the environment. they've served us well, and can ride off into the sunset. --- sys/src/cmd/python/Doc/lib/sqlite3/md5func.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 sys/src/cmd/python/Doc/lib/sqlite3/md5func.py (limited to 'sys/src/cmd/python/Doc/lib/sqlite3/md5func.py') diff --git a/sys/src/cmd/python/Doc/lib/sqlite3/md5func.py b/sys/src/cmd/python/Doc/lib/sqlite3/md5func.py deleted file mode 100644 index 5769687d9..000000000 --- a/sys/src/cmd/python/Doc/lib/sqlite3/md5func.py +++ /dev/null @@ -1,11 +0,0 @@ -import sqlite3 -import md5 - -def md5sum(t): - return md5.md5(t).hexdigest() - -con = sqlite3.connect(":memory:") -con.create_function("md5", 1, md5sum) -cur = con.cursor() -cur.execute("select md5(?)", ("foo",)) -print cur.fetchone()[0] -- cgit v1.2.3