Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tqdm for openSUSE:Factory checked in at 2022-03-31 17:18:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old) and /work/SRC/openSUSE:Factory/.python-tqdm.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tqdm" Thu Mar 31 17:18:08 2022 rev:50 rq:965273 version:4.63.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes 2022-03-13 20:25:27.191675534 +0100 +++ /work/SRC/openSUSE:Factory/.python-tqdm.new.1900/python-tqdm.changes 2022-03-31 17:18:09.837627210 +0200 @@ -1,0 +2,7 @@ +Sun Mar 27 18:02:52 UTC 2022 - Arun Persaud <a...@gmx.de> + +- update to version 4.63.1: + * fix stderr/stdout missing flush() (#1248 <- #1177) + * misc speed improvements/optimisations + +------------------------------------------------------------------- Old: ---- tqdm-4.63.0.tar.gz New: ---- tqdm-4.63.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tqdm.spec ++++++ --- /var/tmp/diff_new_pack.1kfAPc/_old 2022-03-31 17:18:10.465620125 +0200 +++ /var/tmp/diff_new_pack.1kfAPc/_new 2022-03-31 17:18:10.469620081 +0200 @@ -28,7 +28,7 @@ %bcond_with test %endif Name: python-tqdm%{pkg_suffix} -Version: 4.63.0 +Version: 4.63.1 Release: 0 Summary: An extensible progress meter License: MIT AND MPL-2.0 ++++++ tqdm-4.63.0.tar.gz -> tqdm-4.63.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/PKG-INFO new/tqdm-4.63.1/PKG-INFO --- old/tqdm-4.63.0/PKG-INFO 2022-02-28 04:09:40.819270600 +0100 +++ new/tqdm-4.63.1/PKG-INFO 2022-03-24 00:37:15.631581800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.63.0 +Version: 4.63.1 Summary: Fast, Extensible Progress Meter Home-page: https://tqdm.github.io Maintainer: tqdm developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm/_dist_ver.py new/tqdm-4.63.1/tqdm/_dist_ver.py --- old/tqdm-4.63.0/tqdm/_dist_ver.py 2022-02-28 04:09:40.000000000 +0100 +++ new/tqdm-4.63.1/tqdm/_dist_ver.py 2022-03-24 00:37:15.000000000 +0100 @@ -1 +1 @@ -__version__ = '4.63.0' +__version__ = '4.63.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm/cli.py new/tqdm-4.63.1/tqdm/cli.py --- old/tqdm-4.63.0/tqdm/cli.py 2022-02-28 04:09:04.000000000 +0100 +++ new/tqdm-4.63.1/tqdm/cli.py 2022-03-24 00:36:48.000000000 +0100 @@ -67,6 +67,7 @@ # return buf = b'' + len_delim = len(delim) # n = 0 while True: tmp = fin.read(buf_size) @@ -85,17 +86,15 @@ return # n while True: - try: - i = tmp.index(delim) - except ValueError: + i = tmp.find(delim) + if i < 0: buf += tmp break - else: - fp_write(buf + tmp[:i + len(delim)]) - # n += 1 - callback(1 if callback_len else (buf + tmp[:i])) - buf = b'' - tmp = tmp[i + len(delim):] + fp_write(buf + tmp[:i + len(delim)]) + # n += 1 + callback(1 if callback_len else (buf + tmp[:i])) + buf = b'' + tmp = tmp[i + len_delim:] # ((opt, type), ... ) @@ -226,8 +225,9 @@ raise TqdmKeyError("Can only have one of --bytes --update --update_to") except Exception: fp.write("\nError:\n" + help_short) - for i in sys.stdin: - sys.stdout.write(i) + stdin, stdout_write = sys.stdin, sys.stdout.write + for i in stdin: + stdout_write(i) raise else: buf_size = tqdm_args.pop('buf_size', 256) @@ -284,6 +284,7 @@ posix_pipe(stdin, stdout, '', buf_size, t.update) elif delim == b'\\n': log.debug(tqdm_args) + write = stdout.write if update or update_to: with tqdm(**tqdm_args) as t: if update: @@ -293,11 +294,11 @@ def callback(i): t.update(numeric(i.decode()) - t.n) for i in stdin: - stdout.write(i) + write(i) callback(i) else: for i in tqdm(stdin, **tqdm_args): - stdout.write(i) + write(i) else: log.debug(tqdm_args) with tqdm(**tqdm_args) as t: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm/contrib/itertools.py new/tqdm-4.63.1/tqdm/contrib/itertools.py --- old/tqdm-4.63.0/tqdm/contrib/itertools.py 2022-02-28 04:09:04.000000000 +0100 +++ new/tqdm-4.63.1/tqdm/contrib/itertools.py 2022-03-24 00:36:48.000000000 +0100 @@ -31,6 +31,7 @@ total *= i kwargs.setdefault("total", total) with tqdm_class(**kwargs) as t: - for i in itertools.product(*iterables): + it = itertools.product(*iterables) + for i in it: yield i t.update() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm/notebook.py new/tqdm-4.63.1/tqdm/notebook.py --- old/tqdm-4.63.0/tqdm/notebook.py 2022-02-28 04:09:04.000000000 +0100 +++ new/tqdm-4.63.1/tqdm/notebook.py 2022-03-24 00:36:48.000000000 +0100 @@ -254,7 +254,8 @@ def __iter__(self): try: - for obj in super(tqdm_notebook, self).__iter__(): + it = super(tqdm_notebook, self).__iter__() + for obj in it: # return super(tqdm...) will not catch exception yield obj # NB: except ... [ as ...] breaks IPython async KeyboardInterrupt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm/std.py new/tqdm-4.63.1/tqdm/std.py --- old/tqdm-4.63.0/tqdm/std.py 2022-02-28 04:09:04.000000000 +0100 +++ new/tqdm-4.63.1/tqdm/std.py 2022-03-24 00:36:48.000000000 +0100 @@ -336,8 +336,8 @@ fp = file fp_flush = getattr(fp, 'flush', lambda: None) # pragma: no cover if fp in (sys.stderr, sys.stdout): - sys.stderr.flush() - sys.stdout.flush() + getattr(sys.stderr, 'flush', lambda: None)() + getattr(sys.stdout, 'flush', lambda: None)() def fp_write(s): fp.write(_unicode(s)) @@ -1455,7 +1455,7 @@ def moveto(self, n): # TODO: private method self.fp.write(_unicode('\n' * n + _term_move_up() * -n)) - self.fp.flush() + getattr(self.fp, 'flush', lambda: None)() @property def format_dict(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.63.0/tqdm.egg-info/PKG-INFO new/tqdm-4.63.1/tqdm.egg-info/PKG-INFO --- old/tqdm-4.63.0/tqdm.egg-info/PKG-INFO 2022-02-28 04:09:40.000000000 +0100 +++ new/tqdm-4.63.1/tqdm.egg-info/PKG-INFO 2022-03-24 00:37:15.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.63.0 +Version: 4.63.1 Summary: Fast, Extensible Progress Meter Home-page: https://tqdm.github.io Maintainer: tqdm developers