Ticket #3079: doxygentrac-typeerror-comparison-datetime-float-fix.patch
| File doxygentrac-typeerror-comparison-datetime-float-fix.patch, 1.3 kB (added by giel, 1 month ago) |
|---|
-
doxygentrac/doxygentrac.py
old new 11 11 import re 12 12 import mimetypes 13 13 14 from datetime import datetime 15 14 16 from genshi.builder import tag 15 17 from genshi.core import Markup 16 18 … … 213 215 if os.path.isdir(path): 214 216 index = os.path.join(path, 'search.idx') 215 217 if os.path.exists(index): 216 creation = os.path.getctime(index)218 creation = datetime.fromtimestamp(os.path.getctime(index)) 217 219 for result in self._search_in_documentation(doc, keywords): 218 220 result['url'] = req.href.doxygen(doc) + '/' \ 219 221 + result['url'] … … 225 227 index = os.path.join(index, 'search.idx') 226 228 self.log.debug("looking in doc (%s) search.idx: %s:" % (doc, index)) 227 229 if os.path.exists(index): 228 creation = os.path.getctime(index)230 creation = datetime.fromtimestamp(os.path.getctime(index)) 229 231 for result in self._search_in_documentation('', keywords): 230 232 result['url'] = req.href.doxygen() + '/' + \ 231 233 result['url']
