diff options
author | Charles-Francois Natali <cf.natali@gmail.com> | 2014-07-23 09:56:05 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2014-07-23 10:13:20 -0500 |
commit | fdc5525b8ab6a2c6142900bca36d39c08e46d2e9 (patch) | |
tree | e934791242b938a9f801e7129091c01b9affa27b | |
parent | 7b6e7d638d04a73b3a3e59997a5c807468754e3e (diff) | |
download | pyflakes-fdc5525b8ab6a2c6142900bca36d39c08e46d2e9.tar.gz |
Fix for lp/bug/1324942
-rw-r--r-- | pyflakes/checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index 7055832..6d99310 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -471,7 +471,7 @@ class Checker(object): return scopes = [scope for scope in self.scopeStack[:-1] - if isinstance(scope, (FunctionScope, ModuleScope))] + if isinstance(scope, (FunctionScope, ModuleScope, GeneratorScope))] if isinstance(self.scope, GeneratorScope) and scopes[-1] != self.scopeStack[-2]: scopes.append(self.scopeStack[-2]) |