From a085fddf31fd6d47a82cc9319bce2c63727a46e8 Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 19 Jul 2019 12:21:11 +0200 Subject: [PATCH] Use dot for relative imports --- davtelepot/__init__.py | 2 +- davtelepot/bot.py | 6 +++--- davtelepot/custombot.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 6f3bebf..31bd97a 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -14,7 +14,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.1.15" +__version__ = "2.1.16" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 173b07a..0fe1912 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -45,9 +45,9 @@ import re from aiohttp import web # Project modules -from davtelepot.api import TelegramBot, TelegramError -from davtelepot.database import ObjectWithDatabase -from davtelepot.utilities import ( +from .api import TelegramBot, TelegramError +from .database import ObjectWithDatabase +from .utilities import ( escape_html_chars, extract, get_secure_key, make_inline_query_answer, make_lines_of_buttons, remove_html_tags ) diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index f43f189..48bab08 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -35,7 +35,7 @@ import os import davtelepot.bot # Project modules -from davtelepot.utilities import ( +from .utilities import ( get_secure_key, extract, sleep_until )