mirror of https://github.com/caronc/apprise
Chore: Remove Python 2 compatibility
parent
5db016cfb3
commit
85daf12fbd
|
@ -22,13 +22,7 @@
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
try:
|
from unittest import mock
|
||||||
# Python 3.x
|
|
||||||
from unittest import mock
|
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
# Python 2.7
|
|
||||||
import mock
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from json import loads
|
from json import loads
|
||||||
|
|
Loading…
Reference in New Issue