From: Éric Araujo Date: Sun, 5 Jun 2011 23:13:48 +0000 (+0200) Subject: Update doctring now that Python has real booleans X-Git-Tag: v3.3.0a1~2172^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5d831b74d249acfda2927bfcd6addd4bab003a7;p=python Update doctring now that Python has real booleans --- diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py index ddb8ed9832..d4aae418dd 100644 --- a/Lib/packaging/util.py +++ b/Lib/packaging/util.py @@ -271,7 +271,7 @@ def execute(func, args, msg=None, verbose=0, dry_run=False): def strtobool(val): - """Convert a string representation of truth to true (1) or false (0). + """Convert a string representation of truth to a boolean. True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if