diff --git a/github/Requester.py b/github/Requester.py index 301ed9d20f..2dedae0a91 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -12,10 +12,14 @@ # You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see . import httplib -import json import base64 import urllib +try: + import json +except ImportError: + import simplejson as json + import GithubException class Requester: