Optimize imports
This commit is contained in:
parent
2e7a4ad132
commit
e588c30044
29 changed files with 730 additions and 924 deletions
|
|
@ -17,7 +17,6 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from datetime import datetime, timezone
|
||||
import imp
|
||||
|
||||
|
||||
class AbstractMessage:
|
||||
|
|
@ -166,6 +165,8 @@ class OwnerCommand(Command):
|
|||
|
||||
|
||||
def reload():
|
||||
import imp
|
||||
|
||||
import nemubot.message.visitor
|
||||
imp.reload(nemubot.message.visitor)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,8 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import imp
|
||||
|
||||
|
||||
def reload():
|
||||
import imp
|
||||
|
||||
import nemubot.message.printer.IRC
|
||||
imp.reload(nemubot.message.printer.IRC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue