|
3 | 3 | # upstream vendored file that we're not going to modify on our own
|
4 | 4 | # pylint: disable=undefined-variable
|
5 | 5 | #
|
6 |
| -# Copyright (c) 2010-2020 Benjamin Peterson |
| 6 | +# Copyright (c) 2010-2024 Benjamin Peterson |
7 | 7 | #
|
8 | 8 | # Permission is hereby granted, free of charge, to any person obtaining a copy
|
9 | 9 | # of this software and associated documentation files (the "Software"), to deal
|
|
35 | 35 |
|
36 | 36 | # The following makes it easier for us to script updates of the bundled code. It is not part of
|
37 | 37 | # upstream six
|
38 |
| -_BUNDLED_METADATA = {"pypi_name": "six", "version": "1.16.0"} |
| 38 | +_BUNDLED_METADATA = {"pypi_name": "six", "version": "1.17.0"} |
39 | 39 |
|
40 | 40 | __author__ = "Benjamin Peterson <[email protected]>"
|
41 |
| -__version__ = "1.16.0" |
| 41 | +__version__ = "1.17.0" |
42 | 42 |
|
43 | 43 |
|
44 | 44 | # Useful for very coarse version differentiation.
|
@@ -273,7 +273,7 @@ class _MovedItems(_LazyModule):
|
273 | 273 | MovedAttribute("reduce", "__builtin__", "functools"),
|
274 | 274 | MovedAttribute("shlex_quote", "pipes", "shlex", "quote"),
|
275 | 275 | MovedAttribute("StringIO", "StringIO", "io"),
|
276 |
| - MovedAttribute("UserDict", "UserDict", "collections"), |
| 276 | + MovedAttribute("UserDict", "UserDict", "collections", "IterableUserDict", "UserDict"), |
277 | 277 | MovedAttribute("UserList", "UserList", "collections"),
|
278 | 278 | MovedAttribute("UserString", "UserString", "collections"),
|
279 | 279 | MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"),
|
@@ -445,12 +445,17 @@ class Module_six_moves_urllib_request(_LazyModule):
|
445 | 445 | MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"),
|
446 | 446 | MovedAttribute("urlretrieve", "urllib", "urllib.request"),
|
447 | 447 | MovedAttribute("urlcleanup", "urllib", "urllib.request"),
|
448 |
| - MovedAttribute("URLopener", "urllib", "urllib.request"), |
449 |
| - MovedAttribute("FancyURLopener", "urllib", "urllib.request"), |
450 | 448 | MovedAttribute("proxy_bypass", "urllib", "urllib.request"),
|
451 | 449 | MovedAttribute("parse_http_list", "urllib2", "urllib.request"),
|
452 | 450 | MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"),
|
453 | 451 | ]
|
| 452 | +if sys.version_info[:2] < (3, 14): |
| 453 | + _urllib_request_moved_attributes.extend( |
| 454 | + [ |
| 455 | + MovedAttribute("URLopener", "urllib", "urllib.request"), |
| 456 | + MovedAttribute("FancyURLopener", "urllib", "urllib.request"), |
| 457 | + ] |
| 458 | + ) |
454 | 459 | for attr in _urllib_request_moved_attributes:
|
455 | 460 | setattr(Module_six_moves_urllib_request, attr.name, attr)
|
456 | 461 | del attr
|
|
0 commit comments