From 066633ce457949b649be44fe56529b416f39669a Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 25 Mar 2019 09:45:37 +0100 Subject: [PATCH] Move dispatcher.py inside ext folder --- pyrogram/client/dispatcher/__init__.py | 19 ------------------- pyrogram/client/ext/__init__.py | 1 + .../client/{dispatcher => ext}/dispatcher.py | 1 - 3 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 pyrogram/client/dispatcher/__init__.py rename pyrogram/client/{dispatcher => ext}/dispatcher.py (99%) diff --git a/pyrogram/client/dispatcher/__init__.py b/pyrogram/client/dispatcher/__init__.py deleted file mode 100644 index e2e67b70..00000000 --- a/pyrogram/client/dispatcher/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# Pyrogram - Telegram MTProto API Client Library for Python -# Copyright (C) 2017-2019 Dan Tès -# -# This file is part of Pyrogram. -# -# Pyrogram is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Pyrogram is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . - -from .dispatcher import Dispatcher diff --git a/pyrogram/client/ext/__init__.py b/pyrogram/client/ext/__init__.py index ce80958a..18c28ac3 100644 --- a/pyrogram/client/ext/__init__.py +++ b/pyrogram/client/ext/__init__.py @@ -18,6 +18,7 @@ from .base_client import BaseClient from .chat_action import ChatAction +from .dispatcher import Dispatcher from .emoji import Emoji from .parse_mode import ParseMode from .syncer import Syncer diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/ext/dispatcher.py similarity index 99% rename from pyrogram/client/dispatcher/dispatcher.py rename to pyrogram/client/ext/dispatcher.py index 43f80ebb..7552b034 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/ext/dispatcher.py @@ -24,7 +24,6 @@ from threading import Thread import pyrogram from pyrogram.api import types -from ..ext import utils from ..handlers import ( CallbackQueryHandler, MessageHandler, DeletedMessagesHandler, UserStatusHandler, RawUpdateHandler, InlineQueryHandler