| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Replaces our copy of ``zlib`` with ``zlib-ng``, for performance improvements | ||
| in :mod:`zlib`. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -2101,6 +2101,12 @@ zlib_exec(PyObject *mod) | |
| PyUnicode_FromString(zlibVersion())) < 0) { | ||
| return -1; | ||
| } | ||
| #ifdef ZLIBNG_VERSION | ||
| if (PyModule_Add(mod, "ZLIBNG_VERSION", | ||
|
Comment thread
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityFigured we'd want some way to detect this other than looking at the text in ZLIB_VERSION
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitymakes sense. annoying to have optional attributes that one would use hasattr or getattr on instead of blindly accessing, but realistically nobody should care as this is more internal informational so this is fine.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityYeah, the main place it'll be used is in pythoninfo, which already handles absent attributes. We have more offensive optional attributes in our extension modules 😆
Sorry, something went wrong.
All reactions
|
||
| PyUnicode_FromString(ZLIBNG_VERSION)) < 0) { | ||
| return -1; | ||
| } | ||
| #endif | ||
| if (PyModule_AddStringConstant(mod, "__version__", "1.0") < 0) { | ||
| return -1; | ||
| } | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI'll admit I just guessed this, in order to unblock my testing (couldn't build at all with an invalid SBOM). If it's not right, let me know
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis is likely the CPE that would get used, although we can't be for certain until a CVE exists with it... the only one I could find with some searching is cpe:...:zlib-ng:minizip-ng which is for a different component but at least the organization is a match.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.