1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Rename to _logging the logging module to prevent typos

This commit is contained in:
Steffo 2019-03-25 09:49:21 +01:00
parent 6b1f13c1d8
commit e696a0a90a
3 changed files with 10 additions and 5 deletions

View file

@ -1,11 +1,16 @@
import telegram import telegram
import asyncio import asyncio
import typing import typing
import logging as _logging
from ..commands import NullCommand from ..commands import NullCommand
from ..utils import asyncify, Call, Command from ..utils import asyncify, Call, Command
from ..network import RoyalnetLink, Message from ..network import RoyalnetLink, Message
loop = asyncio.get_event_loop()
log = _logging.getLogger(__name__)
async def todo(message: Message): async def todo(message: Message):
pass pass

View file

@ -4,12 +4,12 @@ import uuid
import functools import functools
import typing import typing
import pickle import pickle
import logging import logging as _logging
from .messages import Message, ErrorMessage from .messages import Message, ErrorMessage
from .packages import Package from .packages import Package
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
log = logging.getLogger(__name__) log = _logging.getLogger(__name__)
class NotConnectedError(Exception): class NotConnectedError(Exception):

View file

@ -5,12 +5,12 @@ import datetime
import pickle import pickle
import uuid import uuid
import asyncio import asyncio
import logging import logging as _logging
from .messages import Message, ErrorMessage, InvalidPackageEM, InvalidSecretEM, IdentifySuccessfulMessage from .messages import InvalidPackageEM, InvalidSecretEM, IdentifySuccessfulMessage
from .packages import Package from .packages import Package
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
log = logging.getLogger(__name__) log = _logging.getLogger(__name__)
class ConnectedClient: class ConnectedClient: