mirror of
https://github.com/caronc/apprise.git
synced 2025-06-21 10:17:46 +02:00
Chore: Remove Python 2 compatibility
This commit is contained in:
parent
5db016cfb3
commit
85daf12fbd
@ -22,13 +22,7 @@
|
||||
# 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
|
||||
# THE SOFTWARE.
|
||||
try:
|
||||
# Python 3.x
|
||||
from unittest import mock
|
||||
|
||||
except ImportError:
|
||||
# Python 2.7
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests
|
||||
from json import loads
|
||||
|
Loading…
x
Reference in New Issue
Block a user