Skip to content

Commit 5b2f09d

Browse files
committed
Update simplejson import for Python 2.6
1 parent 6f16683 commit 5b2f09d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

github2/request.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import sys
22
import httplib
3-
import simplejson
3+
try:
4+
import json as simplejson # For Python 2.6
5+
except ImportError:
6+
import simplejson
47
from urlparse import urlparse, urlunparse
58
try:
69
from urlparse import parse_qs

0 commit comments

Comments
 (0)