Hello community, here is the log from the commit of package python3-pyflakes for openSUSE:Factory checked in at 2015-06-23 11:57:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pyflakes (Old) and /work/SRC/openSUSE:Factory/.python3-pyflakes.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-pyflakes" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pyflakes/python3-pyflakes.changes 2015-06-17 16:16:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-pyflakes.new/python3-pyflakes.changes 2015-06-23 11:57:45.000000000 +0200 @@ -1,0 +2,7 @@ +Thu Jun 18 15:25:28 UTC 2015 - arun@gmx.de + +- update to version 0.9.2: + * Fix a traceback when a global is defined in one scope, and used in + another. + +------------------------------------------------------------------- Old: ---- pyflakes-0.9.1.tar.gz New: ---- pyflakes-0.9.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pyflakes.spec ++++++ --- /var/tmp/diff_new_pack.1uHNIa/_old 2015-06-23 11:57:45.000000000 +0200 +++ /var/tmp/diff_new_pack.1uHNIa/_new 2015-06-23 11:57:45.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-pyflakes -Version: 0.9.1 +Version: 0.9.2 Release: 0 Url: https://github.com/pyflakes/pyflakes Summary: Passive checker of Python 3 programs ++++++ pyflakes-0.9.1.tar.gz -> pyflakes-0.9.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/NEWS.txt new/pyflakes-0.9.2/NEWS.txt --- old/pyflakes-0.9.1/NEWS.txt 2015-06-10 03:47:07.000000000 +0200 +++ new/pyflakes-0.9.2/NEWS.txt 2015-06-17 12:19:30.000000000 +0200 @@ -1,3 +1,6 @@ +0.9.2 (2015-06-17): + - Fix a traceback when a global is defined in one scope, and used in another. + 0.9.1 (2015-06-09): - Update NEWS.txt to include 0.9.0, which had been forgotten. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/PKG-INFO new/pyflakes-0.9.2/PKG-INFO --- old/pyflakes-0.9.1/PKG-INFO 2015-06-10 03:52:58.000000000 +0200 +++ new/pyflakes-0.9.2/PKG-INFO 2015-06-17 12:22:13.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyflakes -Version: 0.9.1 +Version: 0.9.2 Summary: passive checker of Python programs Home-page: https://github.com/pyflakes/pyflakes Author: A lot of people diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/pyflakes/__init__.py new/pyflakes-0.9.2/pyflakes/__init__.py --- old/pyflakes-0.9.1/pyflakes/__init__.py 2015-06-10 03:51:38.000000000 +0200 +++ new/pyflakes-0.9.2/pyflakes/__init__.py 2015-06-17 12:18:24.000000000 +0200 @@ -1,2 +1 @@ - -__version__ = '0.9.1' +__version__ = '0.9.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/pyflakes/checker.py new/pyflakes-0.9.2/pyflakes/checker.py --- old/pyflakes-0.9.1/pyflakes/checker.py 2015-05-31 16:15:41.000000000 +0200 +++ new/pyflakes-0.9.2/pyflakes/checker.py 2015-06-17 12:17:45.000000000 +0200 @@ -699,7 +699,7 @@ global_scope.setdefault(node_name, node_value) # Bind name to non-global scopes, but as already "used". - node_value.used = True + node_value.used = (global_scope, node) for scope in self.scopeStack[global_scope_index + 1:]: scope[node_name] = node_value diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/pyflakes/test/test_other.py new/pyflakes-0.9.2/pyflakes/test/test_other.py --- old/pyflakes-0.9.1/pyflakes/test/test_other.py 2015-04-17 13:41:05.000000000 +0200 +++ new/pyflakes-0.9.2/pyflakes/test/test_other.py 2015-06-17 12:15:46.000000000 +0200 @@ -476,6 +476,15 @@ foo.bar += foo.baz ''') + def test_globalDeclaredInDifferentScope(self): + """ + A 'global' can be declared in one scope and reused in another. + """ + self.flakes(''' + def f(): global foo + def g(): foo = 'anything'; foo.is_used() + ''') + class TestUnusedAssignment(TestCase): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyflakes-0.9.1/pyflakes.egg-info/PKG-INFO new/pyflakes-0.9.2/pyflakes.egg-info/PKG-INFO --- old/pyflakes-0.9.1/pyflakes.egg-info/PKG-INFO 2015-06-10 03:52:58.000000000 +0200 +++ new/pyflakes-0.9.2/pyflakes.egg-info/PKG-INFO 2015-06-17 12:22:13.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyflakes -Version: 0.9.1 +Version: 0.9.2 Summary: passive checker of Python programs Home-page: https://github.com/pyflakes/pyflakes Author: A lot of people