FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-103606: Improve error message from logging.config.FileConfig by Agent-Hellboy · Pull Request #103628 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .rst  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
fix doc
  • Loading branch information
Agent-Hellboy committed May 16, 2023
commit 340b860f4093aef177fbdd4c708a54cd433aabc7
6 changes: 3 additions & 3 deletions Doc/library/logging.config.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ in :mod:`logging` itself) and defining handlers which are declared either in
configuration).

It will raise :exc:`FileNotFoundError` if file
Comment thread
Agent-Hellboy marked this conversation as resolved.
Resolved
doesn't exist and :exc:`ValueError` if file is invalid or
empty
doesn't exist and :exc:`ValueError` if the file is invalid or
empty.

:param fname: A filename, or a file-like object, or an instance derived
from :class:`~configparser.RawConfigParser`. If a
Expand Down Expand Up @@ -131,7 +131,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
The *encoding* parameter is added.

.. versionadded:: 3.12

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Strictly speaking I'd have said versionchanged rather than versionadded.

The exception will be thrown if the file provided
An exception will be thrown if the provided file
doesn't exist or is invalid or empty.

.. function:: listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None)
Expand Down
7 changes: 0 additions & 7 deletions Doc/whatsnew/3.12.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,6 @@ itertools
tuples where the last batch may be shorter than the rest.
(Contributed by Raymond Hettinger in :gh:`98363`.)

logging
-------

* :func:`logging.config.fileConfig` now raise :exc:`FileNotFoundError`
if file doesn't exist and :exc:`ValueError` if file is invalid or
empty. (Contributed by Prince Roshan in :gh:`103606`.)

math
----

Expand Down

Back | FazBrowse Home | New Git URL