summaryrefslogtreecommitdiff
path: root/dev-python/loguru/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-24 14:55:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-24 14:55:44 +0100
commitb83b16e0f6c963583f6323fe1bb12ecbd11d6f81 (patch)
treed67748047921162af2742c3e1255e3f1421f769b /dev-python/loguru/files
parent76617568771869151cb2a3f71939719c15dd47a2 (diff)
gentoo auto-resync : 24:07:2023 - 14:55:44
Diffstat (limited to 'dev-python/loguru/files')
-rw-r--r--dev-python/loguru/files/0.6.0-py311-fix.patch68
-rw-r--r--dev-python/loguru/files/0.6.0-typos.patch45
2 files changed, 0 insertions, 113 deletions
diff --git a/dev-python/loguru/files/0.6.0-py311-fix.patch b/dev-python/loguru/files/0.6.0-py311-fix.patch
deleted file mode 100644
index a7d29b911fac..000000000000
--- a/dev-python/loguru/files/0.6.0-py311-fix.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-Fix failing tests on Python 3.11 (#654)
-
-Issue: https://github.com/Delgan/loguru/issues/654
-Commit: https://github.com/Delgan/loguru/commit/5b77724ca75aa8f4b1c8866e0b786c3cbe30ca99
-
-diff --git a/tests/test_filesink_rotation.py b/tests/test_filesink_rotation.py
-index bdf75a3..fb80b69 100644
---- a/tests/test_filesink_rotation.py
-+++ b/tests/test_filesink_rotation.py
-@@ -49,8 +49,8 @@ def monkeypatch_filesystem(monkeypatch):
- return self._timestamp
- return getattr(self._wrapped, name)
-
-- def patched_stat(filepath):
-- stat = __stat__(filepath)
-+ def patched_stat(filepath, *args, **kwargs):
-+ stat = __stat__(filepath, *args, **kwargs)
- wrapped = StatWrapper(stat, filesystem.get(os.path.abspath(filepath)))
- return wrapped
-
-diff --git a/tests/test_interception.py b/tests/test_interception.py
-index a05802a..2f570b9 100644
---- a/tests/test_interception.py
-+++ b/tests/test_interception.py
-@@ -1,4 +1,5 @@
- import logging
-+import sys
-
- from loguru import logger
-
-@@ -7,15 +8,15 @@ from .conftest import make_logging_logger
-
- class InterceptHandler(logging.Handler):
- def emit(self, record):
-- # Get corresponding Loguru level if it exists
-+ # Get corresponding Loguru level if it exists.
- try:
- level = logger.level(record.levelname).name
- except ValueError:
- level = record.levelno
-
-- # Find caller from where originated the logged message
-- frame, depth = logging.currentframe(), 2
-- while frame.f_code.co_filename == logging.__file__:
-+ # Find caller from where originated the logged message.
-+ frame, depth = sys._getframe(6), 6
-+ while frame and frame.f_code.co_filename == logging.__file__:
- frame = frame.f_back
- depth += 1
-
-@@ -30,7 +31,7 @@ def test_formatting(writer):
-
- expected = (
- "tests.test_interception - test_interception.py - test_formatting - DEBUG - "
-- "10 - 38 - test_interception - This is the message\n"
-+ "10 - 39 - test_interception - This is the message\n"
- )
-
- with make_logging_logger("tests", InterceptHandler()) as logging_logger:
-@@ -157,4 +158,4 @@ def test_using_logging_function(writer):
- logging.warning("ABC")
-
- result = writer.read()
-- assert result == "test_using_logging_function 157 test_interception test_interception.py ABC\n"
-+ assert result == "test_using_logging_function 158 test_interception test_interception.py ABC\n"
---
-2.39.2
-
diff --git a/dev-python/loguru/files/0.6.0-typos.patch b/dev-python/loguru/files/0.6.0-typos.patch
deleted file mode 100644
index ed9fecc91bfd..000000000000
--- a/dev-python/loguru/files/0.6.0-typos.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 8b820c7a138f0b320311c85e8ea6e1c017576000 Mon Sep 17 00:00:00 2001
-From: Delgan <4193924+Delgan@users.noreply.github.com>
-Date: Sat, 29 Jan 2022 14:50:59 +0100
-Subject: [PATCH 1/2] Fix small typo in CHANGELOG.md
-
----
- CHANGELOG.rst | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CHANGELOG.rst b/CHANGELOG.rst
-index 4c57fad..1d08f9d 100644
---- a/CHANGELOG.rst
-+++ b/CHANGELOG.rst
-@@ -184,7 +184,7 @@ Initial release.
-
-
- .. _Unreleased: https://github.com/delgan/loguru/compare/0.6.0...master
--.. -0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0
-+.. _0.6.0: https://github.com/delgan/loguru/releases/tag/0.6.0
- .. _0.5.3: https://github.com/delgan/loguru/releases/tag/0.5.3
- .. _0.5.2: https://github.com/delgan/loguru/releases/tag/0.5.2
- .. _0.5.1: https://github.com/delgan/loguru/releases/tag/0.5.1
-
-From ee1ce85a047fc396276e10ae92b72610cbafd57b Mon Sep 17 00:00:00 2001
-From: Delgan <4193924+Delgan@users.noreply.github.com>
-Date: Sun, 30 Jan 2022 20:28:37 +0100
-Subject: [PATCH 2/2] Fix another small typo in CHANGELOG.rst
-
----
- CHANGELOG.rst | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CHANGELOG.rst b/CHANGELOG.rst
-index 1d08f9d..6e1c182 100644
---- a/CHANGELOG.rst
-+++ b/CHANGELOG.rst
-@@ -1,7 +1,7 @@
- `0.6.0`_ (2022-01-29)
- =====================
-
--- Remove internal use of ``pickle.loads()`` considered as a security vulnerability referenced as `CVE-2022-0329 https://nvd.nist.gov/vuln/detail/CVE-2022-0329`_ (`#563 <https://github.com/Delgan/loguru/issues/563>`_).
-+- Remove internal use of ``pickle.loads()`` considered as a security vulnerability referenced as `CVE-2022-0329 <https://nvd.nist.gov/vuln/detail/CVE-2022-0329>`_ (`#563 <https://github.com/Delgan/loguru/issues/563>`_).
- - Modify coroutine sink to make it discard log messages when ``loop=None`` and no event loop is running (due to internally using ``asyncio.get_running_loop()`` in place of ``asyncio.get_event_loop()``).
- - Remove the possibility to add a coroutine sink with ``enqueue=True`` if ``loop=None`` and no event loop is running.
- - Change default encoding of file sink to be ``utf8`` instead of ``locale.getpreferredencoding()`` (`#339 <https://github.com/Delgan/loguru/issues/339>`_).