From f2bcc8dc3a618a46eafb9ae5c37a6a6f35516724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com> Date: Sun, 17 Nov 2019 22:56:32 +0100 Subject: [PATCH] EmojiData: Fix pylint errors --- gajim/gtk/emoji_data.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gajim/gtk/emoji_data.py b/gajim/gtk/emoji_data.py index 41cbca730c..fd3ce61366 100644 --- a/gajim/gtk/emoji_data.py +++ b/gajim/gtk/emoji_data.py @@ -12,6 +12,8 @@ # You should have received a copy of the GNU General Public License # along with Gajim. If not, see <http://www.gnu.org/licenses/>. +# pylint: disable=too-many-lines + import re import weakref from enum import IntEnum @@ -49,7 +51,7 @@ def get_emoji_pixbuf(codepoints): pixbuf = emoji_pixbufs.get(codepoints, None) if pixbuf is None: - return + return None pixbuf = pixbuf.scale_simple(Emoji.TEXT_SIZE, Emoji.TEXT_SIZE, GdkPixbuf.InterpType.HYPER) @@ -178,6 +180,8 @@ def get_regex(self): emoji_pixbufs = EmojiPixbufs() +# pylint: disable=line-too-long + emoji_ascii_data = EmojiAsciiData([ ("':-D", '\U0001F605'), (':)', '\U0001F642'), -- GitLab