-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
3.7 Implement dunder iter method on mock_open bpo-32933 #5975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…addr and to_addrs (#5451) Do not pass the name field in the 'from' address in the SMTP envelope.
tarfile and zipfile now sort directory listing to generate tar and zip archives in a more reproducible way. See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
When using customized decode error handlers, it is possible for builtin decoders to write out-of-bounds and then crash.
Mention only ImportError caused by importing sitecustomize.py/usercustomize.py themselves will be silently ignored.
…H-5464) The f-string example for using datetime format specifier does not match the given output. Changed the format from %b to %B so it matches the output of "January".
In the tutorial about the Generator expression, there is an example with a dict comprehension and not with a generator expression, just removed the code.
…selection. (GH-3651) It was deprecated in 3.6.
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module.
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305
…H-5265) Modify RE examples in documentation to use raw strings to prevent DeprecationWarning. Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka.
Previously the module name was used, which broke relative imports when pdb was run against a plain module or submodule.
Fix typos found by codespell in docs, docstrings, and comments.
…i-language doc (GH-5482) Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.
…-5862) The new code also runs faster.
* Prevent low-grade poplib REDOS (CVE-2018-1060) The regex to test a mail server's timestamp is susceptible to catastrophic backtracking on long evil responses from the server. Happily, the maximum length of malicious inputs is 2K thanks to a limit introduced in the fix for CVE-2013-1752. A 2KB evil response from the mail server would result in small slowdowns (milliseconds vs. microseconds) accumulated over many apop calls. This is a potential DOS vector via accumulated slowdowns. Replace it with a similar non-vulnerable regex. The new regex is RFC compliant. The old regex was non-compliant in edge cases. * Prevent difflib REDOS (CVE-2018-1061) The default regex for IS_LINE_JUNK is susceptible to catastrophic backtracking. This is a potential DOS vector. Replace it with an equivalent non-vulnerable regex. Also introduce unit and REDOS tests for difflib. Co-authored-by: Tim Peters <tim.peters@gmail.com> Co-authored-by: Christian Heimes <christian@python.org>
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
|
Withdrawing - will do it property ... |
https://bugs.python.org/issue32933