summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorwim glenn <wim.glenn@gmail.com>2018-06-08 10:12:49 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2018-06-08 10:12:49 (GMT)
commit66f02aa32f1e4adb9f24cf186f8c495399d5ce9b (patch)
treea054fae38e3c08132961014dfa76961ac132f326 /Misc/NEWS.d
parentff6c07729211fb98431a2793e074d07a21e0650a (diff)
downloadcpython-66f02aa32f1e4adb9f24cf186f8c495399d5ce9b.zip
cpython-66f02aa32f1e4adb9f24cf186f8c495399d5ce9b.tar.gz
cpython-66f02aa32f1e4adb9f24cf186f8c495399d5ce9b.tar.bz2
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
- bugfix and test for fragile metavar handling in argparse (see bpo-24089, bpo-14046, bpo-25058, bpo-11874) - also fixes some incorrect tests that did not make 1-element tuples correctly
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2018-05-23-00-26-27.bpo-11874.glK5iP.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-05-23-00-26-27.bpo-11874.glK5iP.rst b/Misc/NEWS.d/next/Library/2018-05-23-00-26-27.bpo-11874.glK5iP.rst
new file mode 100644
index 0000000..6c75f14
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-05-23-00-26-27.bpo-11874.glK5iP.rst
@@ -0,0 +1,2 @@
+Use a better regex when breaking usage into wrappable parts. Avoids bogus
+assertion errors from custom metavar strings.