On Thu, Sep 4, 2008 at 2:00 PM, Wayne Watson <[EMAIL PROTECTED]>wrote:
> The line > x = time.strptime(fmt_time, "%H %M %S") > with fmt_time = "11 12 40" > in function produces the msg: > Traceback (most recent call last): > File > "C:\Sandia_Meteors\Improved_Sentinel\Sentinel_Playground\Utility_Dev\SU_DateTimeAdjust.py", > line 209, in ? > if not verify_time(bump_time): > File > "C:\Sandia_Meteors\Improved_Sentinel\Sentinel_Playground\Utility_Dev\SU_DateTimeAdjust.py", > line 69, in verify_time > x = time.strptime(fmt_time, "%H %M %S") > AttributeError: 'list' object has no attribute 'strptime' > It looks like time is getting set to a list somewhere. Look at the code to figure out just what's in "time" at that point. You also might try a "print time" before that line or check it's value with a debugger.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor