From a1cf506d8c68df0a61f691a0f691cfc4f4fc9ec0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Mar 2010 01:42:28 +0000 Subject: Fix a packaging error in 2.91, and make the json module import more robust. --- gps/gps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gps/gps.py') 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 -- cgit v1.2.1