Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Unidecode for 
openSUSE:Factory checked in at 2022-02-21 17:45:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Unidecode (Old)
 and      /work/SRC/openSUSE:Factory/.python-Unidecode.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Unidecode"

Mon Feb 21 17:45:45 2022 rev:15 rq:956157 version:1.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Unidecode/python-Unidecode.changes        
2021-11-20 22:48:05.807849000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-Unidecode.new.1958/python-Unidecode.changes  
    2022-02-21 17:45:48.435579868 +0100
@@ -1,0 +2,7 @@
+Sat Feb 19 11:57:09 UTC 2022 - Beno??t Monin <benoit.mo...@gmx.fr>
+
+- update to version 1.3.3:
+  * Command-line utility now reads input line-by-line, making
+    it usable with large files (thanks to Jan-Thorsten Peter)
+
+-------------------------------------------------------------------

Old:
----
  Unidecode-1.3.2.tar.gz

New:
----
  Unidecode-1.3.3.tar.gz

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

Other differences:
------------------
++++++ python-Unidecode.spec ++++++
--- /var/tmp/diff_new_pack.ETZteZ/_old  2022-02-21 17:45:48.979580030 +0100
+++ /var/tmp/diff_new_pack.ETZteZ/_new  2022-02-21 17:45:48.983580031 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Unidecode
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Unidecode
-Version:        1.3.2
+Version:        1.3.3
 Release:        0
 Summary:        ASCII transliterations of Unicode text
 License:        GPL-2.0-or-later

++++++ Unidecode-1.3.2.tar.gz -> Unidecode-1.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/ChangeLog 
new/Unidecode-1.3.3/ChangeLog
--- old/Unidecode-1.3.2/ChangeLog       2021-09-16 07:49:30.000000000 +0200
+++ new/Unidecode-1.3.3/ChangeLog       2022-02-19 10:54:33.000000000 +0100
@@ -1,3 +1,7 @@
+2022-02-19     unidecode 1.3.3
+       * Command-line utility now reads input line-by-line, making
+         it usable with large files (thanks to Jan-Thorsten Peter)
+
 2021-09-16     unidecode 1.3.2
        * Re-upload because PyPI was missing Requires-Python metadata for
          the .tar.gz package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/PKG-INFO new/Unidecode-1.3.3/PKG-INFO
--- old/Unidecode-1.3.2/PKG-INFO        2021-09-16 07:50:27.000000000 +0200
+++ new/Unidecode-1.3.3/PKG-INFO        2022-02-19 11:04:35.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: Unidecode
-Version: 1.3.2
+Version: 1.3.3
 Summary: ASCII transliterations of Unicode text
 Home-page: UNKNOWN
 Author: Tomaz Solc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/Unidecode.egg-info/PKG-INFO 
new/Unidecode-1.3.3/Unidecode.egg-info/PKG-INFO
--- old/Unidecode-1.3.2/Unidecode.egg-info/PKG-INFO     2021-09-16 
07:50:26.000000000 +0200
+++ new/Unidecode-1.3.3/Unidecode.egg-info/PKG-INFO     2022-02-19 
11:04:34.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: Unidecode
-Version: 1.3.2
+Version: 1.3.3
 Summary: ASCII transliterations of Unicode text
 Home-page: UNKNOWN
 Author: Tomaz Solc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/setup.py new/Unidecode-1.3.3/setup.py
--- old/Unidecode-1.3.2/setup.py        2021-09-16 07:47:41.000000000 +0200
+++ new/Unidecode-1.3.3/setup.py        2022-02-19 11:02:37.000000000 +0100
@@ -11,7 +11,7 @@
 
 setup(
     name='Unidecode',
-    version='1.3.2',
+    version='1.3.3',
     description='ASCII transliterations of Unicode text',
     license='GPL',
     long_description=get_long_description(),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/tests/test_utility.py 
new/Unidecode-1.3.3/tests/test_utility.py
--- old/Unidecode-1.3.2/tests/test_utility.py   2021-02-05 14:21:36.000000000 
+0100
+++ new/Unidecode-1.3.3/tests/test_utility.py   2022-02-19 10:47:31.000000000 
+0100
@@ -40,7 +40,7 @@
         out, err, rc = run(['-e', 'utf8', f.name])
 
         # Text after : ... can differ between Python versions
-        self.assertRegex(err, '^Unable to decode input: ')
+        self.assertRegex(err, '^Unable to decode input line ')
         self.assertEqual(rc, 1)
 
     def test_file_specified_encoding(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Unidecode-1.3.2/unidecode/util.py 
new/Unidecode-1.3.3/unidecode/util.py
--- old/Unidecode-1.3.2/unidecode/util.py       2021-02-05 14:21:36.000000000 
+0100
+++ new/Unidecode-1.3.3/unidecode/util.py       2022-02-19 10:47:31.000000000 
+0100
@@ -1,5 +1,6 @@
 # vim:ts=4 sw=4 expandtab softtabstop=4
 import argparse
+import io
 import locale
 import os
 import sys
@@ -30,20 +31,21 @@
         if args.text:
             fatal("Can't use both FILE and -c option")
         else:
-            with open(args.path, 'rb') as f:
-                stream = f.read()
+            stream = open(args.path, 'rb')
     elif args.text:
-        stream = os.fsencode(args.text)
+        text = os.fsencode(args.text)
         # add a newline to the string if it comes from the
         # command line so that the result is printed nicely
         # on the console.
-        stream += b'\n'
+        stream = io.BytesIO(text + b'\n')
     else:
-        stream = sys.stdin.buffer.read()
+        stream = sys.stdin.buffer
 
-    try:
-        stream = stream.decode(encoding)
-    except UnicodeDecodeError as e:
-        fatal('Unable to decode input: %s, start: %d, end: %d' % (e.reason, 
e.start, e.end))
+    for line_nr, line in enumerate(stream):
+        try:
+            line = line.decode(encoding)
+        except UnicodeDecodeError as e:
+            fatal('Unable to decode input line %s: %s, start: %d, end: %d' % 
(line_nr, e.reason, e.start, e.end))
 
-    sys.stdout.write(unidecode(stream))
+        sys.stdout.write(unidecode(line))
+    stream.close()

Reply via email to