| 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 |
|---|---|---|
| @@ -1,15 +1,27 @@ | ||
| import unittest | ||
| from test import support | ||
| from test.support import import_helper | ||
| import binascii | ||
| import copy | ||
| import pickle | ||
| import random | ||
| import sys | ||
| import importlib | ||
|
Comment thread
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 QualityKeep imports sorted
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 QualityThey are all technically "Standard library imports"...
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 QualityThe comment was about alphabetically sorted, your reply about grouped by type 🙂
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 QualityI'm sorry but where in PEP 8 is that specified, I cannot seem to find any mention of it?
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 QualityIt’s a very common practice. But another one is to always import os and sys at the top.
Sorry, something went wrong.
All reactions
|
||
| from test.support import bigmemtest, _1G, _4G, is_s390x | ||
|
|
||
|
|
||
| zlib = import_helper.import_module('zlib') | ||
| # Building CPython without zlib is not supported except WASI. | ||
| # | ||
| # Anyone who wants build CPython this way should be prepared to patch it, | ||
| # but the core team may help getting those patches to the main branch | ||
| # (as that’s the place where multiple third parties can cooperate). | ||
| # | ||
| # For tests to pass without zlib, this file needs to be removed. | ||
|
|
||
| try: | ||
| zlib = importlib.import_module('zlib') | ||
| except ImportError as msg: | ||
| if sys.platform.startswith('wasi'): | ||
| raise unittest.SkipTest(str(msg)) | ||
| raise ImportError("Building CPython without zlib is not supported") | ||
|
|
||
| requires_Compress_copy = unittest.skipUnless( | ||
| hasattr(zlib.compressobj(), "copy"), | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Make zlib required to build CPython with the exception of WASI implementing :pep:`775`. | ||
| (Contributed by Stan Ulbrych and Gregory P. Smith in :gh:`130297`.) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| 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 QualitySorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.