https://github.com/python/cpython/commit/a4d4c1ede21f9fa72280f4fc0f50212eecfac9ae
commit: a4d4c1ede21f9fa72280f4fc0f50212eecfac9ae
branch: main
author: Stephen Morton <[email protected]>
committer: gpshead <[email protected]>
date: 2024-11-23T18:36:48-08:00
summary:

gh-126662: harmonize naming for three namedtuple base classes in urllib.parse 
(GH-126663)

harmonize naming for three namedtuple base classes in urllib.parse

files:
M Lib/urllib/parse.py

diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index 8d7631d5693ece..c412c729852272 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -247,11 +247,11 @@ def _hostinfo(self):
         return hostname, port
 
 
-_DefragResultBase = namedtuple('DefragResult', 'url fragment')
+_DefragResultBase = namedtuple('_DefragResultBase', 'url fragment')
 _SplitResultBase = namedtuple(
-    'SplitResult', 'scheme netloc path query fragment')
+    '_SplitResultBase', 'scheme netloc path query fragment')
 _ParseResultBase = namedtuple(
-    'ParseResult', 'scheme netloc path params query fragment')
+    '_ParseResultBase', 'scheme netloc path params query fragment')
 
 _DefragResultBase.__doc__ = """
 DefragResult(url, fragment)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to