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
pyflakes: undefined names #65177
Comments
I ran pyflakes on Python 3.5. Attached patch fixes some undefined names warnings. I don't know what to with these two warnings, they look to be false positive: diff -r 72889bf8531d Lib/multiprocessing/spawn.py
--- a/Lib/multiprocessing/spawn.py Tue Mar 18 13:21:29 2014 +0100
+++ b/Lib/multiprocessing/spawn.py Wed Mar 19 11:49:24 2014 +0100
@@ -64,6 +64,7 @@ def freeze_support():
Run code for process object if this in not the main process
'''
if is_forking(sys.argv):
+ # FIXME: main() is undefined
main()
sys.exit()
diff -r 72889bf8531d Lib/multiprocessing/synchronize.py
--- a/Lib/multiprocessing/synchronize.py Tue Mar 18 13:21:29 2014 +0100
+++ b/Lib/multiprocessing/synchronize.py Wed Mar 19 11:50:50 2014 +0100
@@ -51,7 +51,6 @@ class SemLock(object):
_rand = tempfile._RandomNameSequence()
def __init__(self, kind, value, maxvalue, *, ctx):
- ctx = ctx or get_context()
ctx = ctx.get_context()
unlink_now = sys.platform == 'win32' or ctx._name == 'fork'
for i in range(100): |
LGTM. Lib/multiprocessing/synchronize.py: Add at the start of the file: from . import get_context |
New changeset 6718d00b872b by Victor Stinner in branch '3.4': New changeset 8de5d0809dd8 by Victor Stinner in branch '3.4': New changeset 52404c14be07 by Victor Stinner in branch 'default': |
I created bpo-20990 for the undefined names in multiprocessing. |
New changeset bdad874195d6 by Victor Stinner in branch '3.4': New changeset 2e4692a762d5 by Victor Stinner in branch 'default': |
What about 2.7? |
Python 2.7 is not affected. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: