From 092c3a4def76ebcde56756ed4739ea21fa8d3900 Mon Sep 17 00:00:00 2001 From: mfrasca <> Date: Mon, 16 Oct 2006 08:21:50 +0000 Subject: [PATCH] corrected a bug which prevents operation if no %q is found in configuration. --- examples/pywmdatetime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/pywmdatetime.py b/examples/pywmdatetime.py index 6801825..639f260 100755 --- a/examples/pywmdatetime.py +++ b/examples/pywmdatetime.py @@ -144,6 +144,7 @@ def checkForEvents(): def mainLoop(timeFmt, dateFmt, dayFmt, weekFmt): recalcWeek = weekFmt.find('%q') + 1 # True if we found %q. + newWeekFmt = weekFmt counter = -1 lastStrs = [''] * 4 while 1: