- 27 12月, 2020 15 次提交
-
-
由 Jon Dufresne 提交于
Now that Python 2 is not supported, the bytes/str boundaries are more clear and explicit. Using six.ensure_* methods for backwards compatibility is no longer necessary as the types are known and verified using mypy. One exception is tests/lib/wheel.py which allows tests to pass test setup data as either bytes or str. The module operations.install.wheel also remains untouched as it is especially delicate to bytes/str mixups and the current version is working.
-
由 Pradyun Gedam 提交于
Clean up urllib imports
-
由 Pradyun Gedam 提交于
-
由 Tzu-ping Chung 提交于
-
由 Hugo van Kemenade 提交于
-
由 Tzu-ping Chung 提交于
-
由 Pradyun Gedam 提交于
Use unified OSError and its subclasses
-
由 Pradyun Gedam 提交于
-
由 Pradyun Gedam 提交于
-
由 Tzu-ping Chung 提交于
-
由 Tzu-ping Chung 提交于
-
由 Tzu-ping Chung 提交于
When the new resolver needs to upgrade a package, it puts the already-installed package in the middle of the candidate list obtained from indexes. But when doing it, the candidate list is eagerly consumed, causing pip to download all candidates.
-
由 Tzu-ping Chung 提交于
Skip candidate not providing valid metadata This reverts commit 7165ab8c.
-
由 Jon Dufresne 提交于
Since Python 3.3, the following classes have merged into OSError. They remain as aliases for backward compatibility. - EnvironmentError - IOError - WindowsError https://docs.python.org/3/library/exceptions.html#OSError Python 3 also has subclasses of OSError to help identify more specific errors. For example, FileNotFoundError. This allows simplifying some except blocks.
-
由 Pradyun Gedam 提交于
Use "yield from" syntax
-
- 26 12月, 2020 25 次提交
-
-
由 Jon Dufresne 提交于
Available since Python 3.3. https://docs.python.org/3/whatsnew/3.3.html#pep-380
-
由 Pradyun Gedam 提交于
Add a preview for the "next release" change notes
-
由 Pradyun Gedam 提交于
Replace io.open() and codecs.open() with builtin open()
-
由 Pradyun Gedam 提交于
Use f-strings for simple string formatting
-
由 Pradyun Gedam 提交于
Harmonize type signature of VersionControl.get_remote_url() subclasses
-
由 Pradyun Gedam 提交于
Remove "universal" from "bdist_wheel" configuration
-
由 Pradyun Gedam 提交于
Fix broken email link in docs feedback banners
-
由 Pradyun Gedam 提交于
Remove object from class definitions
-
由 Pradyun Gedam 提交于
Remove Python 2 compatibility shim for urlparse.uses_fragment
-
由 Pradyun Gedam 提交于
Replace vendored ipaddress with stdlib
-
由 Pradyun Gedam 提交于
Remove unnecessary str() call around str literal
-
由 Pradyun Gedam 提交于
Remove Python 2 compatibility shim for json.JSONDecodeError
-
由 Pradyun Gedam 提交于
Replace utils.compat.lru_cache with stdlib functools.lru_cache
-
由 Jon Dufresne 提交于
Unnecessary since dropping Python 2.
-
由 Jon Dufresne 提交于
JSONDecodeError has been available since Python 3.5. https://docs.python.org/3/library/json.html#json.JSONDecodeError
-
由 Jon Dufresne 提交于
Use pyupgrade to convert simple string formatting to use f-string syntax. pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are anything but simple names or dotted names.
-
由 Jon Dufresne 提交于
In Python 3, these are functionally equivalent and share the same feature set.
-
由 Jon Dufresne 提交于
Unnecessary since dropping Python 2 support. In Python 3, all classes are new style classes.
-
由 Jon Dufresne 提交于
In the base class, the signature is defined as: type: (str) -> str Further, the docstring says: Raises RemoteNotFoundError if the repository does not have a remote url configured. However, some subclasses were returning None instead of raising RemoteNotFoundError. This violated the type signature and forced calling code to handle multiple error paradigms. Now, all subclasses implement the base's signature. This allowed simplifying some call sites as they can assume None will not be returned. This mismatch was noticed while trying to remove "mypy: disallow-untyped-defs=False" comments.
-
由 Jon Dufresne 提交于
This attribute (now urllib.parse.uses_fragment) is unused by the stdlib and remains only for backwards compatibility. See the comment: https://github.com/python/cpython/blob/v3.6.0/Lib/urllib/parse.py#L55-L63
-
由 Pradyun Gedam 提交于
Use short Python3 super() syntax
-
由 Pradyun Gedam 提交于
Drop u prefix from str literals
-
由 Jon Dufresne 提交于
-
由 Jon Dufresne 提交于
The stdlib version has been available since Python 3.2.
-
由 Jon Dufresne 提交于
The vendored copy is unnecessary since dropping Python 2 support. The module has been available in the stdlib since Python 3.3.
-