Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyflakes for openSUSE:Factory 
checked in at 2023-07-12 17:27:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyflakes (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyflakes.new.8922 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyflakes"

Wed Jul 12 17:27:55 2023 rev:36 rq:1098327 version:3.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyflakes/python-pyflakes.changes  
2023-05-09 13:08:54.477581698 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyflakes.new.8922/python-pyflakes.changes    
    2023-07-12 17:28:31.278988747 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 13:45:34 UTC 2023 - Markéta Machová <mmach...@suse.com>
+
+- add upstream py3114.patch 
+
+-------------------------------------------------------------------

New:
----
  py3114.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyflakes.spec ++++++
--- /var/tmp/diff_new_pack.AzGDk8/_old  2023-07-12 17:28:31.838992624 +0200
+++ /var/tmp/diff_new_pack.AzGDk8/_new  2023-07-12 17:28:31.842992651 +0200
@@ -25,6 +25,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/PyCQA/pyflakes
 Source:         
https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM 
https://github.com/PyCQA/pyflakes/commit/836631f2f73d45baa4021453d89fc9fd6f52be58
 fix error reporter and testsuite in 3.11.4+
+Patch:          py3114.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -42,7 +44,7 @@
 modules with side effects. It's also much faster.
 
 %prep
-%setup -q -n pyflakes-%{version}
+%autosetup -p1 -n pyflakes-%{version}
 
 %build
 %python_build

++++++ py3114.patch ++++++
>From 836631f2f73d45baa4021453d89fc9fd6f52be58 Mon Sep 17 00:00:00 2001
From: Anthony Sottile <asott...@umich.edu>
Date: Mon, 12 Jun 2023 21:00:45 -0400
Subject: [PATCH] fix error reporter and testsuite in 3.11.4+ (#775)

---
 pyflakes/reporter.py      | 3 ++-
 pyflakes/test/test_api.py | 8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

Index: pyflakes-3.0.1/pyflakes/reporter.py
===================================================================
--- pyflakes-3.0.1.orig/pyflakes/reporter.py
+++ pyflakes-3.0.1/pyflakes/reporter.py
@@ -56,8 +56,9 @@ class Reporter:
         else:
             line = text.splitlines()[-1]
 
+        # lineno might be None if the error was during tokenization
         # lineno might be 0 if the error came from stdin
-        lineno = max(lineno, 1)
+        lineno = max(lineno or 0, 1)
 
         if offset is not None:
             if sys.version_info < (3, 8) and text is not None:
Index: pyflakes-3.0.1/pyflakes/test/test_api.py
===================================================================
--- pyflakes-3.0.1.orig/pyflakes/test/test_api.py
+++ pyflakes-3.0.1/pyflakes/test/test_api.py
@@ -628,8 +628,12 @@ x = "%s"
 x = "%s"
 """ % SNOWMAN).encode('utf-16')
         with self.makeTempFile(source) as sourcePath:
-            self.assertHasErrors(
-                sourcePath, [f"{sourcePath}: problem decoding source\n"])
+            if sys.version_info < (3, 11, 4):
+                expected = f"{sourcePath}: problem decoding source\n"
+            else:
+                expected = f"{sourcePath}:1: source code string cannot contain 
null bytes\n"  # noqa: E501
+
+            self.assertHasErrors(sourcePath, [expected])
 
     def test_checkRecursive(self):
         """

Reply via email to