File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- encoding: utf-8 -*-
33
4- try :
5- import simplejson as json
6- except ImportError :
7- import json
8-
4+ from pygithub3 .core .utils import json
95from pygithub3 .exceptions import NotFound , BadRequest , UnprocessableEntity
106
117
Original file line number Diff line number Diff line change 22# -*- encoding: utf-8 -*-
33""" Utils to support python 2.6 compatibility """
44
5+ try :
6+ import simplejson as json
7+ except ImportError :
8+ import json
9+
510from collections import MutableMapping
611
712
Original file line number Diff line number Diff line change 22# -*- encoding: utf-8 -*-
33
44import re
5- try :
6- import simplejson as json
7- except ImportError :
8- import json
95
6+ from pygithub3 .core .utils import import_module , json
107from pygithub3 .exceptions import (RequestDoesNotExist , UriInvalid ,
118 ValidationError , InvalidBodySchema )
129from pygithub3 .resources .base import Raw
13- from pygithub3 .core .utils import import_module
1410
1511ABS_IMPORT_PREFIX = 'pygithub3.requests'
1612
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- encoding: utf-8 -*-
33
4- try :
5- import simplejson as json
6- except ImportError :
7- import json
4+ from pygithub3 .core .utils import json
85
96
107class Resource (object ):
You can’t perform that action at this time.
0 commit comments