Hello community,

here is the log from the commit of package python-mechanize for 
openSUSE:Factory checked in at 2019-04-08 20:53:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mechanize (Old)
 and      /work/SRC/openSUSE:Factory/.python-mechanize.new.3908 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mechanize"

Mon Apr  8 20:53:21 2019 rev:21 rq:691805 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mechanize/python-mechanize.changes        
2019-01-21 11:03:21.531042562 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mechanize.new.3908/python-mechanize.changes  
    2019-04-08 20:53:25.794563680 +0200
@@ -1,0 +2,7 @@
+Fri Apr  5 12:27:36 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.4.1:
+  * A couple of python 3 specific fixes for servers with misisng robots.txt
+    files and also errors when using basic/digest auth
+
+-------------------------------------------------------------------

Old:
----
  mechanize-0.4.0.tar.gz

New:
----
  mechanize-0.4.1.tar.gz

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

Other differences:
------------------
++++++ python-mechanize.spec ++++++
--- /var/tmp/diff_new_pack.nA08fq/_old  2019-04-08 20:53:26.510564205 +0200
+++ /var/tmp/diff_new_pack.nA08fq/_new  2019-04-08 20:53:26.514564208 +0200
@@ -18,8 +18,8 @@
 
 %define modname mechanize
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:           python-%{modname}
-Version:        0.4.0
+Name:           python-mechanize
+Version:        0.4.1
 Release:        0
 Summary:        Stateful programmatic web browsing
 License:        (BSD-3-Clause OR ZPL-2.1) AND BSD-3-Clause

++++++ mechanize-0.4.0.tar.gz -> mechanize-0.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/PKG-INFO new/mechanize-0.4.1/PKG-INFO
--- old/mechanize-0.4.0/PKG-INFO        2019-01-16 11:01:47.000000000 +0100
+++ new/mechanize-0.4.1/PKG-INFO        2019-03-16 10:28:05.000000000 +0100
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: mechanize
-Version: 0.4.0
+Version: 0.4.1
 Summary: Stateful programmatic web browsing.
 Home-page: https://github.com/python-mechanize/mechanize
 Author: Kovid Goyal
 Author-email: [email protected]
 License: BSD
-Download-URL: 
https://pypi.python.org/packages/source/m/mechanize/mechanize-0.4.0.tar.gz
+Download-URL: 
https://pypi.python.org/packages/source/m/mechanize/mechanize-0.4.1.tar.gz
 Description: Stateful programmatic web browsing, after Andy Lester's Perl 
module
         WWW::Mechanize.
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/README.rst 
new/mechanize-0.4.1/README.rst
--- old/mechanize-0.4.0/README.rst      2019-01-10 11:34:12.000000000 +0100
+++ new/mechanize-0.4.1/README.rst      2019-02-14 09:39:32.000000000 +0100
@@ -1,7 +1,7 @@
 mechanize - Automate interaction with HTTP web servers
 ##########################################################
 
-|pypi| |unix_build| |windows_build|
+|pypi| |build|
 
 .. contents::
 
@@ -85,10 +85,6 @@
     :target: https://pypi.python.org/pypi/mechanize
     :alt: Latest version released on PyPi
 
-.. |unix_build| image:: 
https://api.travis-ci.org/python-mechanize/mechanize.svg
-    :target: http://travis-ci.org/python-mechanize/mechanize
-    :alt: Build status of the master branch on Unix
-
-.. |windows_build|  image:: 
https://ci.appveyor.com/api/projects/status/github/python-mechanize/mechanize?svg=true
-    :target: https://ci.appveyor.com/project/python-mechanize/mechanize
-    :alt: Build status of the master branch on Windows
+.. |build| image:: 
https://dev.azure.com/kovidgoyal/mechanize/_apis/build/status/python-mechanize.mechanize?branchName=master
+    :target: 
https://dev.azure.com/kovidgoyal/mechanize/_build/latest?definitionId=1&branchName=master
+    :alt: Build status of the master branch
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/mechanize/_http.py 
new/mechanize-0.4.1/mechanize/_http.py
--- old/mechanize-0.4.0/mechanize/_http.py      2019-01-10 11:34:12.000000000 
+0100
+++ new/mechanize-0.4.1/mechanize/_http.py      2019-03-07 16:34:29.000000000 
+0100
@@ -96,8 +96,8 @@
                       timeout=self._timeout)
         try:
             f = self._opener.open(req)
-        except HTTPError as f:
-            pass
+        except HTTPError as err:
+            f = err
         except (IOError, socket.error, OSError) as exc:
             debug_robots("ignoring error opening %r: %s" %
                          (self.url, exc))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/mechanize/_urllib2_fork.py 
new/mechanize-0.4.1/mechanize/_urllib2_fork.py
--- old/mechanize-0.4.0/mechanize/_urllib2_fork.py      2019-01-11 
06:06:58.000000000 +0100
+++ new/mechanize-0.4.1/mechanize/_urllib2_fork.py      2019-03-15 
17:57:58.000000000 +0100
@@ -195,6 +195,13 @@
     def get_full_url(self):
         return self.__original
 
+    @property
+    def full_url(self):
+        # In python 3 this is a deleteable and settable property, which when
+        # deleted gets set to None. But this interface does not seem to be used
+        # by any stdlib code, so this should be sufficient.
+        return self.__original
+
     def get_type(self):
         if self.type is None:
             self.type, self.__r_type = splittype(self.__original)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/mechanize/_version.py 
new/mechanize-0.4.1/mechanize/_version.py
--- old/mechanize-0.4.0/mechanize/_version.py   2019-01-16 11:00:19.000000000 
+0100
+++ new/mechanize-0.4.1/mechanize/_version.py   2019-03-16 10:27:36.000000000 
+0100
@@ -1,2 +1,2 @@
-"0.4.0"
-__version__ = (0, 4, 0, None, None)
+"0.4.1"
+__version__ = (0, 4, 1, None, None)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/mechanize.egg-info/PKG-INFO 
new/mechanize-0.4.1/mechanize.egg-info/PKG-INFO
--- old/mechanize-0.4.0/mechanize.egg-info/PKG-INFO     2019-01-16 
11:01:47.000000000 +0100
+++ new/mechanize-0.4.1/mechanize.egg-info/PKG-INFO     2019-03-16 
10:28:05.000000000 +0100
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: mechanize
-Version: 0.4.0
+Version: 0.4.1
 Summary: Stateful programmatic web browsing.
 Home-page: https://github.com/python-mechanize/mechanize
 Author: Kovid Goyal
 Author-email: [email protected]
 License: BSD
-Download-URL: 
https://pypi.python.org/packages/source/m/mechanize/mechanize-0.4.0.tar.gz
+Download-URL: 
https://pypi.python.org/packages/source/m/mechanize/mechanize-0.4.1.tar.gz
 Description: Stateful programmatic web browsing, after Andy Lester's Perl 
module
         WWW::Mechanize.
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mechanize-0.4.0/test/test_urllib2.py 
new/mechanize-0.4.1/test/test_urllib2.py
--- old/mechanize-0.4.0/test/test_urllib2.py    2019-01-11 06:06:58.000000000 
+0100
+++ new/mechanize-0.4.1/test/test_urllib2.py    2019-02-14 09:39:32.000000000 
+0100
@@ -45,22 +45,16 @@
         self.assertRaises(ValueError, mechanize.urlopen, 'bogus url')
 
         fname = os.path.join(self.make_temp_dir(), "test.txt")
-        write_file(fname, b"data")
-        if fname[1:2] == ":":
-            fname = fname[2:]
-        # And more hacking to get it to work on MacOS. This assumes
-        # urllib.pathname2url works, unfortunately...
-        if os.name == 'mac':
-            fname = '/' + fname.replace(':', '/')
-        elif os.name == 'riscos':
-            import string
-            fname = os.expand(fname)
-            fname = fname.translate(string.maketrans("/.", "./"))
-
-        file_url = "file://%s" % sanepathname2url(fname)
-        f = mechanize.urlopen(file_url)
-
-        f.read()
+        data = b'data'
+        write_file(fname, data)
+        if os.sep == '\\':
+            fname = '/' + fname
+        file_url = "file://" + fname
+        try:
+            f = mechanize.urlopen(file_url)
+        except Exception as e:
+            raise ValueError('Failed to open URL: {} for fname: {} with error: 
{}'.format(file_url, fname, e))
+        self.assertEqual(f.read(), data)
         f.close()
 
     def test_parse_http_list(self):
@@ -1345,7 +1339,7 @@
         class SleepTester:
             def __init__(self, test, seconds):
                 self._test = test
-                if seconds is 0:
+                if seconds == 0:
                     seconds = None  # don't expect a sleep for 0 seconds
                 self._expected = seconds
                 self._got = None


Reply via email to