Mercurial > bitten > bitten-test
changeset 782:87571993f310 0.6.x
Backported [859] from trunk to 0.6.x
author | dfraser |
---|---|
date | Wed, 28 Apr 2010 12:23:54 +0000 |
parents | 6915eb0df755 |
children | 064c293c9a5e |
files | bitten/util/json.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/util/json.py +++ b/bitten/util/json.py @@ -20,6 +20,8 @@ # If that's not present, we have a copy of the to_json method, which we will remove once Trac 0.11 support is removed # And finally, the to_json method requires trac.util.text.javascript_quote, which is only present from Trac 0.11.3, so we have a copy of that too +import re + try: # to_json is present from Trac 0.12 onwards - should remove once Trac 0.11 support is removed from trac.util.presentation import to_json