Hello community, here is the log from the commit of package python-WebOb for openSUSE:Factory checked in at 2016-10-18 10:43:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-WebOb (Old) and /work/SRC/openSUSE:Factory/.python-WebOb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-WebOb" Changes: -------- --- /work/SRC/openSUSE:Factory/python-WebOb/python-WebOb.changes 2016-06-07 23:49:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-WebOb.new/python-WebOb.changes 2016-10-18 10:43:31.000000000 +0200 @@ -1,0 +2,10 @@ +Sat Oct 15 09:37:15 UTC 2016 - [email protected] + +- update to 1.6.2: + * WebOb's exceptions will lazily read underlying variables when inserted into + templates to avoid expensive computations/crashes when inserting into the + template. This had a bad performance regression on Py27 because of the way + the lazified class was created and returned. See + https://github.com/Pylons/webob/pull/284 + +------------------------------------------------------------------- Old: ---- WebOb-1.6.1.tar.gz New: ---- WebOb-1.6.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-WebOb.spec ++++++ --- /var/tmp/diff_new_pack.do7LkS/_old 2016-10-18 10:43:32.000000000 +0200 +++ /var/tmp/diff_new_pack.do7LkS/_new 2016-10-18 10:43:32.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-WebOb -Version: 1.6.1 +Version: 1.6.2 Release: 0 Summary: WSGI request and response object License: MIT ++++++ WebOb-1.6.1.tar.gz -> WebOb-1.6.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/CHANGES.txt new/WebOb-1.6.2/CHANGES.txt --- old/WebOb-1.6.1/CHANGES.txt 2016-05-20 18:53:36.000000000 +0200 +++ new/WebOb-1.6.2/CHANGES.txt 2016-10-15 00:40:27.000000000 +0200 @@ -1,3 +1,15 @@ +1.6.2 (2016-10-14) +------------------ + +Bugfix +~~~~~~ + +- WebOb's exceptions will lazily read underlying variables when inserted into + templates to avoid expensive computations/crashes when inserting into the + template. This had a bad performance regression on Py27 because of the way + the lazified class was created and returned. See + https://github.com/Pylons/webob/pull/284 + 1.6.1 (2016-05-20) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/PKG-INFO new/WebOb-1.6.2/PKG-INFO --- old/WebOb-1.6.1/PKG-INFO 2016-05-20 18:56:31.000000000 +0200 +++ new/WebOb-1.6.2/PKG-INFO 2016-10-15 00:42:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: WebOb -Version: 1.6.1 +Version: 1.6.2 Summary: WSGI request and response object Home-page: http://webob.org/ Author: Pylons Project @@ -45,6 +45,18 @@ + 1.6.2 (2016-10-14) + ------------------ + + Bugfix + ~~~~~~ + + - WebOb's exceptions will lazily read underlying variables when inserted into + templates to avoid expensive computations/crashes when inserting into the + template. This had a bad performance regression on Py27 because of the way + the lazified class was created and returned. See + https://github.com/Pylons/webob/pull/284 + 1.6.1 (2016-05-20) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/WebOb.egg-info/PKG-INFO new/WebOb-1.6.2/WebOb.egg-info/PKG-INFO --- old/WebOb-1.6.1/WebOb.egg-info/PKG-INFO 2016-05-20 18:56:29.000000000 +0200 +++ new/WebOb-1.6.2/WebOb.egg-info/PKG-INFO 2016-10-15 00:42:15.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: WebOb -Version: 1.6.1 +Version: 1.6.2 Summary: WSGI request and response object Home-page: http://webob.org/ Author: Pylons Project @@ -45,6 +45,18 @@ + 1.6.2 (2016-10-14) + ------------------ + + Bugfix + ~~~~~~ + + - WebOb's exceptions will lazily read underlying variables when inserted into + templates to avoid expensive computations/crashes when inserting into the + template. This had a bad performance regression on Py27 because of the way + the lazified class was created and returned. See + https://github.com/Pylons/webob/pull/284 + 1.6.1 (2016-05-20) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/docs/reference.txt new/WebOb-1.6.2/docs/reference.txt --- old/WebOb-1.6.1/docs/reference.txt 2015-10-30 23:13:30.000000000 +0100 +++ new/WebOb-1.6.2/docs/reference.txt 2016-10-15 00:38:24.000000000 +0200 @@ -21,6 +21,8 @@ the extracted documentation for the :py:mod:`~webob.request` and :py:mod:`~webob.response`. +.. _request-reference: + Request ======= @@ -542,6 +544,8 @@ >>> req.environ['webob.adhoc_attrs'] {'some_attr': 'blah blah blah'} +.. _response-reference: + Response ======== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/docs/whatsnew-1.6.txt new/WebOb-1.6.2/docs/whatsnew-1.6.txt --- old/WebOb-1.6.1/docs/whatsnew-1.6.txt 2016-05-20 18:47:07.000000000 +0200 +++ new/WebOb-1.6.2/docs/whatsnew-1.6.txt 2016-10-15 00:38:24.000000000 +0200 @@ -65,8 +65,17 @@ https://github.com/Pylons/webob/pull/183 for more information. - The application/json media type does not allow for a charset as discovery of - the encoding is done at the JSON layer. Upon initialization of a Response - WebOb will no longer add a charset if the content-type is set to JSON. See - https://github.com/Pylons/webob/pull/197 and + the encoding is done at the JSON layer, and it must always be UTF-{8,16,32}. + See the IANA specification at + https://www.iana.org/assignments/media-types/application/json, which notes + + No "charset" parameter is defined for this registration. + Adding one really has no effect on compliant recipients. + + RFC4627 describes the method for encoding discovery using the JSON content + itself. Upon initialization of a Response WebOb will no longer add a charset + if the content-type is set to JSON. See + https://github.com/Pylons/webob/pull/197, + https://github.com/Pylons/webob/issues/237 and https://github.com/Pylons/pyramid/issues/1611 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/setup.cfg new/WebOb-1.6.2/setup.cfg --- old/WebOb-1.6.1/setup.cfg 2016-05-20 18:56:31.000000000 +0200 +++ new/WebOb-1.6.2/setup.cfg 2016-10-15 00:42:21.000000000 +0200 @@ -13,7 +13,7 @@ universal = 1 [egg_info] -tag_svn_revision = 0 tag_date = 0 tag_build = +tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/setup.py new/WebOb-1.6.2/setup.py --- old/WebOb-1.6.1/setup.py 2016-05-20 18:54:10.000000000 +0200 +++ new/WebOb-1.6.2/setup.py 2016-10-15 00:40:35.000000000 +0200 @@ -23,7 +23,7 @@ setup( name='WebOb', - version='1.6.1', + version='1.6.2', description="WSGI request and response object", long_description=README + '\n\n' + CHANGES, classifiers=[ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WebOb-1.6.1/webob/exc.py new/WebOb-1.6.2/webob/exc.py --- old/WebOb-1.6.1/webob/exc.py 2016-02-09 06:32:09.000000000 +0100 +++ new/WebOb-1.6.2/webob/exc.py 2016-10-15 00:38:24.000000000 +0200 @@ -188,11 +188,18 @@ br_re = re.compile(r'<br.*?>', re.I|re.S) comment_re = re.compile(r'<!--|-->') +class _lazified(object): + def __init__(self, func, value): + self.func = func + self.value = value + + def __str__(self): + return self.func(self.value) + def lazify(func): - class _lazyfied(object): - def __init__(self, s): self._s = s - def __str__(self): return func(self._s) - return _lazyfied + def wrapper(value): + return _lazified(func, value) + return wrapper def no_escape(value): if value is None:
