From cfe47a04341ac6a6ab8984bf2236f107f9aa3ad7 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 19 Sep 2021 18:24:16 +0200 Subject: [PATCH] Correct privacy on sessions module --- telethon/{sessions => _sessions}/__init__.py | 0 telethon/{sessions => _sessions}/abstract.py | 0 telethon/{sessions => _sessions}/memory.py | 0 telethon/{sessions => _sessions}/sqlite.py | 0 telethon/{sessions => _sessions}/string.py | 0 telethon/{sessions => _sessions}/types.py | 0 telethon/sessions.py | 12 ++++++++++++ 7 files changed, 12 insertions(+) rename telethon/{sessions => _sessions}/__init__.py (100%) rename telethon/{sessions => _sessions}/abstract.py (100%) rename telethon/{sessions => _sessions}/memory.py (100%) rename telethon/{sessions => _sessions}/sqlite.py (100%) rename telethon/{sessions => _sessions}/string.py (100%) rename telethon/{sessions => _sessions}/types.py (100%) create mode 100644 telethon/sessions.py diff --git a/telethon/sessions/__init__.py b/telethon/_sessions/__init__.py similarity index 100% rename from telethon/sessions/__init__.py rename to telethon/_sessions/__init__.py diff --git a/telethon/sessions/abstract.py b/telethon/_sessions/abstract.py similarity index 100% rename from telethon/sessions/abstract.py rename to telethon/_sessions/abstract.py diff --git a/telethon/sessions/memory.py b/telethon/_sessions/memory.py similarity index 100% rename from telethon/sessions/memory.py rename to telethon/_sessions/memory.py diff --git a/telethon/sessions/sqlite.py b/telethon/_sessions/sqlite.py similarity index 100% rename from telethon/sessions/sqlite.py rename to telethon/_sessions/sqlite.py diff --git a/telethon/sessions/string.py b/telethon/_sessions/string.py similarity index 100% rename from telethon/sessions/string.py rename to telethon/_sessions/string.py diff --git a/telethon/sessions/types.py b/telethon/_sessions/types.py similarity index 100% rename from telethon/sessions/types.py rename to telethon/_sessions/types.py diff --git a/telethon/sessions.py b/telethon/sessions.py new file mode 100644 index 00000000..b4c9bf4f --- /dev/null +++ b/telethon/sessions.py @@ -0,0 +1,12 @@ +from ._sessions.types import ( + DataCenter, + SessionState, + ChannelState, + Entity, +) +from ._sessions import ( + Session, + MemorySession, + SQLiteSession, + StringSession, +)