From 4753c96777ab52d61f8b7dc1f470123de0e9e69d Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Mon, 27 Dec 2010 17:17:12 +0100 Subject: [PATCH] Try to make bf2.py python 2.5 compatible --- modules/bf2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/bf2.py b/modules/bf2.py index 56c2413..92ebcfb 100644 --- a/modules/bf2.py +++ b/modules/bf2.py @@ -38,7 +38,11 @@ from mumo_module import MumoModule import re -import json +try: + import json +except ImportError: # Fallback for python < 2.6 + import simplejson as json + class bf2(MumoModule): default_config = {'bf2':(