Skip to content

Commit

Permalink
Reformat some code and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Jan 20, 2022
1 parent 7779678 commit 378a400
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion loguru/_locks_machinery.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def create_logger_lock():
def create_handler_lock():
return threading.Lock()


else:
# While forking, we need to sanitize all locks to make sure the child process doesn't run into
# a deadlock (if a lock already acquired is inherited) and to protect sink from corrupted state.
Expand Down
1 change: 0 additions & 1 deletion loguru/_simple_sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
def get_loop(task):
return task.get_loop()


else:

def get_loop(task):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_contextualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import pytest

from loguru._contextvars import load_contextvar_class
from loguru import logger
from loguru._contextvars import load_contextvar_class


def test_contextualize(writer):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_coroutine_sink.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import logging
import platform
import multiprocessing
import platform
import re
import sys
import threading
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filesink_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import pytest

import loguru
from loguru._ctime_functions import load_ctime_functions
from loguru import logger
from loguru._ctime_functions import load_ctime_functions


@pytest.fixture
Expand Down

0 comments on commit 378a400

Please sign in to comment.