From 22e845ba6049f2417e1f8d14a67bd5a97a9b62c9 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 17 Oct 2024 17:14:33 -0400 Subject: [PATCH] use a real boolean (False) default for display_option_names generated attributes --- distutils/dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distutils/dist.py b/distutils/dist.py index 154301ba..8e1e6d0b 100644 --- a/distutils/dist.py +++ b/distutils/dist.py @@ -139,7 +139,7 @@ def __init__(self, attrs=None): # noqa: C901 self.dry_run = False self.help = False for attr in self.display_option_names: - setattr(self, attr, 0) + setattr(self, attr, False) # Store the distribution meta-data (name, version, author, and so # forth) in a separate object -- we're getting to have enough