Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

kill use of mx.DateTime

the must have been joking at Logilab

Changeset 1406ce26c744

Parent 2a4f89ec0791

by Adrian Buehlmann

Changes to one file · Browse files at 1406ce26c744 Showing diff from parent 2a4f89ec0791 Diff from another changeset...

 
21
22
23
24
25
26
27
 
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
 
21
22
23
 
24
25
26
 
49
50
51
 
 
52
53
54
55
56
 
 
 
 
57
58
59
@@ -21,7 +21,6 @@
 import os  import os.path as osp  import sys -import mx.DateTime as dt    def should_rebuild(srcfile, pyfile):   return not osp.isfile(pyfile) or osp.isfile(srcfile) and \ @@ -50,17 +49,11 @@
   _icons = {}  def _load_icons(): - t = dt.today() - x = t.month == 12 and t.day in (24,25)   d = QtCore.QDir(':/icons')   for icn in d.entryList():   name, ext = osp.splitext(str(icn))   if name not in _icons or ext == ".svg":   _icons[name] = QtGui.QIcon(':/icons/%s' % icn) - if x: - for name in _icons: - if name.endswith('_x'): - _icons[name[:-2]] = _icons[name]    def icon(name):   """