Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use of deprecated flask.ext imports #270

Merged
merged 1 commit into from
Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions octoprint_telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from subprocess import Popen, PIPE
import threading, requests, re, time, datetime, StringIO, json, random, logging, traceback, io, collections, os, flask,base64,PIL, pkg_resources,subprocess,zipfile,glob #,resource
import octoprint.plugin, octoprint.util, octoprint.filemanager
from flask.ext.babel import gettext
from flask.ext.login import current_user
from flask_babel import gettext
from flask_login import current_user
from .telegramCommands import TCMD # telegramCommands.
from .telegramNotifications import TMSG # telegramNotifications
from .telegramNotifications import telegramMsgDict # dict of known notification messages
Expand Down
2 changes: 1 addition & 1 deletion octoprint_telegram/telegramCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging, sarge, hashlib, datetime, time, operator, socket
import octoprint.filemanager
import requests
from flask.ext.babel import gettext
from flask_babel import gettext
from .telegramNotifications import telegramMsgDict

################################################################################################################
Expand Down
2 changes: 1 addition & 1 deletion octoprint_telegram/telegramNotifications.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import absolute_import
import time, datetime, logging
import octoprint.util
from flask.ext.babel import gettext
from flask_babel import gettext

###################################################################################################
# Here you find the known notification messages and their handles.
Expand Down