mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Protect logging call against None argument (fixes #11045).
Initial patch by Kelsey Hightower. Approved by Raymond. A test was non-trivial to write without calling the private function directly, so we moved that for later.
This commit is contained in:
parent
7dabf16f69
commit
ac4e58eb61
2 changed files with 4 additions and 1 deletions
|
@ -391,7 +391,8 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
|
||||||
archive_dir = os.path.dirname(archive_name)
|
archive_dir = os.path.dirname(archive_name)
|
||||||
|
|
||||||
if not os.path.exists(archive_dir):
|
if not os.path.exists(archive_dir):
|
||||||
logger.info("creating %s" % archive_dir)
|
if logger is not None:
|
||||||
|
logger.info("creating %s" % archive_dir)
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
os.makedirs(archive_dir)
|
os.makedirs(archive_dir)
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #11045: Protect logging call against None argument.
|
||||||
|
|
||||||
- Issue #11052: Correct IDLE menu accelerators on Mac OS X for Save
|
- Issue #11052: Correct IDLE menu accelerators on Mac OS X for Save
|
||||||
commands.
|
commands.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue