Hello community, here is the log from the commit of package python3-colorama for openSUSE:Factory checked in at 2016-03-16 10:35:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-colorama (Old) and /work/SRC/openSUSE:Factory/.python3-colorama.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-colorama" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-colorama/python3-colorama.changes 2016-01-15 10:41:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-colorama.new/python3-colorama.changes 2016-03-16 10:35:59.000000000 +0100 @@ -1,0 +2,8 @@ +Sat Mar 12 19:16:22 UTC 2016 - a...@gmx.de + +- update to version 0.3.7: + * Fix issue #84: check if stream has 'closed' attribute before + testing it + * Fix issue #74: objects might become None at exit + +------------------------------------------------------------------- Old: ---- colorama-0.3.6.tar.gz New: ---- colorama-0.3.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-colorama.spec ++++++ --- /var/tmp/diff_new_pack.irFtak/_old 2016-03-16 10:36:00.000000000 +0100 +++ /var/tmp/diff_new_pack.irFtak/_new 2016-03-16 10:36:00.000000000 +0100 @@ -17,7 +17,7 @@ Name: python3-colorama -Version: 0.3.6 +Version: 0.3.7 Release: 0 Summary: Cross-platform colored terminal text License: BSD-3-Clause ++++++ colorama-0.3.6.tar.gz -> colorama-0.3.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/CHANGELOG.rst new/colorama-0.3.7/CHANGELOG.rst --- old/colorama-0.3.6/CHANGELOG.rst 2016-01-08 15:20:15.000000000 +0100 +++ new/colorama-0.3.7/CHANGELOG.rst 2016-03-08 10:14:21.000000000 +0100 @@ -1,3 +1,6 @@ +0.3.7 + * Fix issue #84: check if stream has 'closed' attribute before testing it + * Fix issue #74: objects might become None at exit 0.3.6 * Fix issue #81: fix ValueError when a closed stream was used 0.3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/PKG-INFO new/colorama-0.3.7/PKG-INFO --- old/colorama-0.3.6/PKG-INFO 2016-01-09 20:05:56.000000000 +0100 +++ new/colorama-0.3.7/PKG-INFO 2016-03-08 10:18:24.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: colorama -Version: 0.3.6 +Version: 0.3.7 Summary: Cross-platform colored terminal text. Home-page: https://github.com/tartley/colorama Author: Arnon Yaari diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/colorama/__init__.py new/colorama-0.3.7/colorama/__init__.py --- old/colorama-0.3.6/colorama/__init__.py 2016-01-08 15:20:45.000000000 +0100 +++ new/colorama-0.3.7/colorama/__init__.py 2016-03-08 10:14:45.000000000 +0100 @@ -3,5 +3,5 @@ from .ansi import Fore, Back, Style, Cursor from .ansitowin32 import AnsiToWin32 -__version__ = '0.3.6' +__version__ = '0.3.7' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/colorama/ansitowin32.py new/colorama-0.3.7/colorama/ansitowin32.py --- old/colorama-0.3.6/colorama/ansitowin32.py 2015-12-14 09:09:52.000000000 +0100 +++ new/colorama-0.3.7/colorama/ansitowin32.py 2016-02-11 11:19:34.000000000 +0100 @@ -13,6 +13,10 @@ winterm = WinTerm() +def is_stream_closed(stream): + return not hasattr(stream, 'closed') or stream.closed + + def is_a_tty(stream): return hasattr(stream, 'isatty') and stream.isatty() @@ -64,12 +68,12 @@ # should we strip ANSI sequences from our output? if strip is None: - strip = conversion_supported or (not wrapped.closed and not is_a_tty(wrapped)) + strip = conversion_supported or (not is_stream_closed(wrapped) and not is_a_tty(wrapped)) self.strip = strip # should we should convert ANSI sequences into win32 calls? if convert is None: - convert = conversion_supported and not wrapped.closed and is_a_tty(wrapped) + convert = conversion_supported and not is_stream_closed(wrapped) and is_a_tty(wrapped) self.convert = convert # dict of ansi codes to win32 functions and parameters @@ -145,7 +149,7 @@ def reset_all(self): if self.convert: self.call_win32('m', (0,)) - elif not self.strip and not self.wrapped.closed: + elif not self.strip and not is_stream_closed(self.wrapped): self.wrapped.write(Style.RESET_ALL) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/colorama/initialise.py new/colorama-0.3.7/colorama/initialise.py --- old/colorama-0.3.6/colorama/initialise.py 2015-12-03 22:37:49.000000000 +0100 +++ new/colorama-0.3.7/colorama/initialise.py 2016-02-11 11:19:28.000000000 +0100 @@ -16,7 +16,8 @@ def reset_all(): - AnsiToWin32(orig_stdout).reset_all() + if AnsiToWin32 is not None: # Issue #74: objects might become None at exit + AnsiToWin32(orig_stdout).reset_all() def init(autoreset=False, convert=None, strip=None, wrap=True): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/colorama-0.3.6/colorama.egg-info/PKG-INFO new/colorama-0.3.7/colorama.egg-info/PKG-INFO --- old/colorama-0.3.6/colorama.egg-info/PKG-INFO 2016-01-09 20:05:56.000000000 +0100 +++ new/colorama-0.3.7/colorama.egg-info/PKG-INFO 2016-03-08 10:18:24.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: colorama -Version: 0.3.6 +Version: 0.3.7 Summary: Cross-platform colored terminal text. Home-page: https://github.com/tartley/colorama Author: Arnon Yaari