Changeset 7676:b047b3c88b27 in orange


Ignore:
Timestamp:
02/15/11 00:29:39 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
4cd4102ab8f8c2028209213e7f07537d0b8d2dfb
Message:

Replaced asctime with strftime: time.asctime coredumps when given invalid arguments!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWTimeline.py

    r6913 r7676  
    77from OWWidget import * 
    88from OWGUI import * 
    9 from PyQt4.QtGui import * 
    10 from PyQt4.QtCore import * 
    119from OWDlgs import OWChooseImageSizeDlg 
    1210import sip 
     
    140138        self.wrapScales = [[(str(i+1), 3600*24*sum([31, 28.25, 31, 30, 31, 30, 31, 31, 30, 31, 30][:i])) for i in range(12)], 
    141139                           [(str(i+1), i*24*3600) for i in range(31)], 
    142                            [(time.asctime((0, 0, 0, 0, 0, 0, i, 0, 0)), i*24*3600) for i in range(7)], 
     140                           [(str(i+1), i*24*3600) for i in range(31)], 
     141                           [(time.strftime("%a %b %d %H:%M:%S %Y", (0, 0, 0, 0, 0, 0, i, 0, 0)), i*24*3600) for i in range(7)], 
     142#                           [(time.asctime((0, 0, 0, 0, 0, 0, i, 0, 0)), i*24*3600) for i in range(7)], 
    143143                           [(str(i), i*3600) for i in range(24)], 
    144144                           [(str(i), i*60) for i in range(60)] 
Note: See TracChangeset for help on using the changeset viewer.