Hello community,

here is the log from the commit of package python-colorama for openSUSE:Factory 
checked in at 2018-12-10 12:24:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-colorama (Old)
 and      /work/SRC/openSUSE:Factory/.python-colorama.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-colorama"

Mon Dec 10 12:24:42 2018 rev:14 rq:653418 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-colorama/python-colorama.changes  
2018-11-18 23:22:19.198199398 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-colorama.new.19453/python-colorama.changes   
    2018-12-10 12:25:20.918706099 +0100
@@ -1,0 +2,7 @@
+Sat Dec  1 18:27:18 UTC 2018 - Arun Persaud <[email protected]>
+
+- update to version 0.4.1:
+  * Fix issue #196: prevent exponential number of calls when calling
+    'init' multiple times. Reported by bbayles and fixed by Delgan.
+
+-------------------------------------------------------------------

Old:
----
  0.4.0.tar.gz

New:
----
  0.4.1.tar.gz

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

Other differences:
------------------
++++++ python-colorama.spec ++++++
--- /var/tmp/diff_new_pack.UUX1jE/_old  2018-12-10 12:25:21.322705697 +0100
+++ /var/tmp/diff_new_pack.UUX1jE/_new  2018-12-10 12:25:21.322705697 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-colorama
-Version:        0.4.0
+Version:        0.4.1
 Release:        0
 Summary:        Cross-platform colored terminal text
 License:        BSD-3-Clause

++++++ 0.4.0.tar.gz -> 0.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.4.0/CHANGELOG.rst 
new/colorama-0.4.1/CHANGELOG.rst
--- old/colorama-0.4.0/CHANGELOG.rst    2018-10-10 16:43:39.000000000 +0200
+++ new/colorama-0.4.1/CHANGELOG.rst    2018-11-25 13:12:46.000000000 +0100
@@ -1,3 +1,6 @@
+0.4.1
+  * Fix issue #196: prevent exponential number of calls when calling 'init'
+    multiple times. Reported by bbayles and fixed by Delgan.
 0.4.0
   * Fix issue #142: reset LIGHT_EX colors with RESET_ALL. Reported by Delgan
   * Fix issue #147: ignore invalid "erase" ANSI codes. Reported by shin-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.4.0/Makefile new/colorama-0.4.1/Makefile
--- old/colorama-0.4.0/Makefile 2018-10-10 16:43:39.000000000 +0200
+++ new/colorama-0.4.1/Makefile 2018-11-25 13:12:46.000000000 +0100
@@ -12,17 +12,12 @@
 .PHONY: clean
 
 sdist: clean
-       python setup.py sdist --formats=zip,gztar
+       python setup.py sdist
 .PHONY: sdist
 
-register: clean
-       python setup.py sdist --formats=zip,gztar register
-       python setup.py bdist_wheel register
-.PHONY: release
-
 upload: clean
-       python setup.py sdist --formats=zip,gztar register upload
-       python setup.py bdist_wheel register upload
+       python setup.py sdist upload
+       python setup.py bdist_wheel upload
 .PHONY: release
 
 test:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.4.0/colorama/__init__.py 
new/colorama-0.4.1/colorama/__init__.py
--- old/colorama-0.4.0/colorama/__init__.py     2018-10-10 16:43:39.000000000 
+0200
+++ new/colorama-0.4.1/colorama/__init__.py     2018-11-25 13:12:46.000000000 
+0100
@@ -3,4 +3,4 @@
 from .ansi import Fore, Back, Style, Cursor
 from .ansitowin32 import AnsiToWin32
 
-__version__ = '0.4.0'
+__version__ = '0.4.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.4.0/colorama/ansitowin32.py 
new/colorama-0.4.1/colorama/ansitowin32.py
--- old/colorama-0.4.0/colorama/ansitowin32.py  2018-10-10 16:43:39.000000000 
+0200
+++ new/colorama-0.4.1/colorama/ansitowin32.py  2018-11-25 13:12:46.000000000 
+0100
@@ -45,12 +45,20 @@
         if 'PYCHARM_HOSTED' in os.environ:
             if stream is not None and (stream is sys.__stdout__ or stream is 
sys.__stderr__):
                 return True
-        return (hasattr(stream, 'isatty') and stream.isatty())
+        try:
+            stream_isatty = stream.isatty
+        except AttributeError:
+            return False
+        else:
+            return stream_isatty()
 
     @property
     def closed(self):
         stream = self.__wrapped
-        return not hasattr(stream, 'closed') or stream.closed
+        try:
+            return stream.closed
+        except AttributeError:
+            return True
 
 
 class AnsiToWin32(object):


Reply via email to