Skip to content

Commit 1cd7e28

Browse files
committed
Rename TCP protocol impl files
1 parent c5911a6 commit 1cd7e28

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

pyrogram/connection/connection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727

2828
class Connection:
2929
MODES = {
30-
0: Full,
31-
1: Abridged,
32-
2: Intermediate
30+
0: TCPFull,
31+
1: TCPAbridged,
32+
2: TCPIntermediate
3333
}
3434

3535
def __init__(self, address: tuple, proxy: dict, mode: int = 1):
3636
self.address = address
3737
self.proxy = proxy
38-
self.mode = self.MODES.get(mode, Abridged)
38+
self.mode = self.MODES.get(mode, TCPAbridged)
3939
self.lock = threading.Lock()
4040
self.connection = None
4141

pyrogram/connection/transport/tcp/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
from .abridged import Abridged
20-
from .full import Full
21-
from .intermediate import Intermediate
19+
from .tcp_abridged import TCPAbridged
20+
from .tcp_full import TCPFull
21+
from .tcp_intermediate import TCPIntermediate

pyrogram/connection/transport/tcp/abridged.py renamed to pyrogram/connection/transport/tcp/tcp_abridged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
log = logging.getLogger(__name__)
2424

2525

26-
class Abridged(TCP):
26+
class TCPAbridged(TCP):
2727
def __init__(self, proxy: dict):
2828
super().__init__(proxy)
2929

pyrogram/connection/transport/tcp/full.py renamed to pyrogram/connection/transport/tcp/tcp_full.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
log = logging.getLogger(__name__)
2626

2727

28-
class Full(TCP):
28+
class TCPFull(TCP):
2929
def __init__(self, proxy: dict):
3030
super().__init__(proxy)
3131
self.seq_no = None

pyrogram/connection/transport/tcp/intermediate.py renamed to pyrogram/connection/transport/tcp/tcp_intermediate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
import logging
2020
from struct import pack, unpack
2121

22-
from .abridged import TCP
22+
from .tcp import TCP
2323

2424
log = logging.getLogger(__name__)
2525

2626

27-
class Intermediate(TCP):
27+
class TCPIntermediate(TCP):
2828
def __init__(self, proxy: dict):
2929
super().__init__(proxy)
3030

0 commit comments

Comments
 (0)