summaryrefslogtreecommitdiff
path: root/gps/gps.py
diff options
context:
space:
mode:
Diffstat (limited to 'gps/gps.py')
-rwxr-xr-xgps/gps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gps/gps.py b/gps/gps.py
index cd64c0d5..33a604a3 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -5,9 +5,9 @@
#
import time, calendar, math, socket, sys, select
-try:
+if sys.hexversion >= 0x2060000:
import json # For Python 2.6
-except ImportError:
+else:
import simplejson as json # For Python 2.4 and 2.5
api_major_version = 3 # bumped on incompatible changes