~treaves/trac-bzr/trac-bzr

« back to all changes in this revision

Viewing changes to tracbzr/backend.py

  • Committer: Stanislav Kopp
  • Date: 2013-06-03 21:16:27 UTC
  • mfrom: (128.1.1 trac-bzr)
  • Revision ID: staskopp@gmail.com-20130603211627-a1858ls3353o2ot5
Fix detection of trac version to work with version 1.0.x

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
from trac.util.html import html, Markup
49
49
from trac.util.text import exception_to_unicode
50
50
 
51
 
trac_version = (int(trac.__version__[0]), int(trac.__version__[2:4]))
 
51
major, minor, patch = trac.__version__.split('.')
 
52
trac_version = (int(major), int(minor))
52
53
 
53
54
if trac_version >= (0,12):
54
55
    def _trac_construct(init):