From 9b2a114d0c07240c60279f6bb308a5f4eb89b452 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 2 Sep 2003 08:08:54 +0000 Subject: [PATCH] Changed the name of the uptimeEnder function so it shows up more clearly in atexit._exithandlers. --- plugins/FunDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FunDB.py b/plugins/FunDB.py index eb2c7f0d9..052fad162 100755 --- a/plugins/FunDB.py +++ b/plugins/FunDB.py @@ -113,13 +113,13 @@ def makeDb(dbfilename, replace=False): return db def uptimeEnder(started): - def f(): + def endUptime(): db = makeDb(dbFilename) cursor = db.cursor() cursor.execute("""UPDATE uptime SET ended=%s WHERE started=%s""", int(time.time()), started) db.commit() - return f + return endUptime def addWord(db, word, commit=False): word = word.strip().lower()