mirror of
https://github.com/caronc/apprise.git
synced 2025-08-12 17:47:19 +02:00
Added support for recent CPython and PyPy versions; Droped Python v2.7 Support (#680)
This commit is contained in:
@ -27,16 +27,7 @@ import re
|
||||
import os
|
||||
import sys
|
||||
|
||||
try:
|
||||
# Python v3.4+
|
||||
from importlib import reload
|
||||
except ImportError:
|
||||
try:
|
||||
# Python v3.0-v3.3
|
||||
from imp import reload
|
||||
except ImportError:
|
||||
# Python v2.7
|
||||
pass
|
||||
from importlib import reload
|
||||
|
||||
|
||||
def module_reload(filename):
|
||||
|
Reference in New Issue
Block a user