Hello community,

here is the log from the commit of package python-PyScreeze for 
openSUSE:Factory checked in at 2019-09-25 08:41:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyScreeze (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyScreeze.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyScreeze"

Wed Sep 25 08:41:59 2019 rev:7 rq:732896 version:0.1.22

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyScreeze/python-PyScreeze.changes        
2019-06-18 14:59:34.441291265 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-PyScreeze.new.7948/python-PyScreeze.changes  
    2019-09-25 08:41:59.810274716 +0200
@@ -1,0 +2,6 @@
+Tue Sep 24 09:44:59 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.1.22:
+  * Added -z to scrot to silence the beep.
+
+-------------------------------------------------------------------

Old:
----
  PyScreeze-0.1.21.tar.gz

New:
----
  PyScreeze-0.1.22.tar.gz

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

Other differences:
------------------
++++++ python-PyScreeze.spec ++++++
--- /var/tmp/diff_new_pack.bGERdX/_old  2019-09-25 08:42:00.314274649 +0200
+++ /var/tmp/diff_new_pack.bGERdX/_new  2019-09-25 08:42:00.318274648 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-PyScreeze
-Version:        0.1.21
+Version:        0.1.22
 Release:        0
 Summary:        A screenshot Python module
 License:        BSD-3-Clause

++++++ PyScreeze-0.1.21.tar.gz -> PyScreeze-0.1.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyScreeze-0.1.21/PKG-INFO 
new/PyScreeze-0.1.22/PKG-INFO
--- old/PyScreeze-0.1.21/PKG-INFO       2019-05-17 19:19:10.000000000 +0200
+++ new/PyScreeze-0.1.22/PKG-INFO       2019-06-28 06:55:17.462100500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: PyScreeze
-Version: 0.1.21
+Version: 0.1.22
 Summary: A simple, cross-platform screenshot module for Python 2 and 3.
 Home-page: https://github.com/asweigart/pyscreeze
 Author: Al Sweigart
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyScreeze-0.1.21/PyScreeze.egg-info/PKG-INFO 
new/PyScreeze-0.1.22/PyScreeze.egg-info/PKG-INFO
--- old/PyScreeze-0.1.21/PyScreeze.egg-info/PKG-INFO    2019-05-17 
19:19:09.000000000 +0200
+++ new/PyScreeze-0.1.22/PyScreeze.egg-info/PKG-INFO    2019-06-28 
06:55:17.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: PyScreeze
-Version: 0.1.21
+Version: 0.1.22
 Summary: A simple, cross-platform screenshot module for Python 2 and 3.
 Home-page: https://github.com/asweigart/pyscreeze
 Author: Al Sweigart
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyScreeze-0.1.21/pyscreeze/__init__.py 
new/PyScreeze-0.1.22/pyscreeze/__init__.py
--- old/PyScreeze-0.1.21/pyscreeze/__init__.py  2019-05-17 19:17:56.000000000 
+0200
+++ new/PyScreeze-0.1.22/pyscreeze/__init__.py  2019-06-28 06:50:27.000000000 
+0200
@@ -10,7 +10,7 @@
 http://ubuntuforums.org/showthread.php?t=1751455
 """
 
-__version__ = '0.1.21'
+__version__ = '0.1.22'
 
 import collections
 import datetime
@@ -343,6 +343,8 @@
 
 
 def _screenshot_win32(imageFilename=None, region=None):
+    # TODO - Use the winapi to get a screenshot, and compare performance with 
ImageGrab.grab()
+    # https://stackoverflow.com/a/3586280/1893164
     try:
         im = ImageGrab.grab()
     except NameError:
@@ -357,6 +359,7 @@
 
 
 def _screenshot_osx(imageFilename=None, region=None):
+    # TODO - use tmp name for this file.
     if imageFilename is None:
         tmpFilename = 'screenshot%s.png' % 
(datetime.datetime.now().strftime('%Y-%m%d_%H-%M-%S-%f'))
     else:
@@ -387,7 +390,7 @@
     else:
         tmpFilename = imageFilename
     if scrotExists:
-        subprocess.call(['scrot', tmpFilename])
+        subprocess.call(['scrot', '-z', tmpFilename])
         im = Image.open(tmpFilename)
 
         if region is not None:


Reply via email to