[Python-modules-commits] [python-webob] 01/05: Import python-webob_1.6.2.orig.tar.gz
Barry Warsaw
barry at moszumanska.debian.org
Tue Oct 25 20:38:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository python-webob.
commit 7629d4b6d5feac2be0247e7787d91b2aedf544ce
Author: Barry Warsaw <barry at python.org>
Date: Tue Oct 25 16:27:41 2016 -0400
Import python-webob_1.6.2.orig.tar.gz
---
CHANGES.txt | 12 ++++++++++++
PKG-INFO | 14 +++++++++++++-
WebOb.egg-info/PKG-INFO | 14 +++++++++++++-
docs/reference.txt | 4 ++++
docs/whatsnew-1.6.txt | 15 ++++++++++++---
setup.cfg | 2 +-
setup.py | 2 +-
webob/exc.py | 15 +++++++++++----
8 files changed, 67 insertions(+), 11 deletions(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index 4721a4f..0b3ace5 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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 --git a/PKG-INFO b/PKG-INFO
index 9099531..6784294 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -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 @@ Description: WebOb
+ 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 --git a/WebOb.egg-info/PKG-INFO b/WebOb.egg-info/PKG-INFO
index 9099531..6784294 100644
--- a/WebOb.egg-info/PKG-INFO
+++ b/WebOb.egg-info/PKG-INFO
@@ -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 @@ Description: WebOb
+ 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 --git a/docs/reference.txt b/docs/reference.txt
index 88eea0c..74bff8e 100644
--- a/docs/reference.txt
+++ b/docs/reference.txt
@@ -21,6 +21,8 @@ This is a somewhat different approach to reference documentation compared to
the extracted documentation for the :py:mod:`~webob.request` and
:py:mod:`~webob.response`.
+.. _request-reference:
+
Request
=======
@@ -542,6 +544,8 @@ in ``environ['webob.adhoc_attrs']`` (a dictionary).
>>> req.environ['webob.adhoc_attrs']
{'some_attr': 'blah blah blah'}
+.. _response-reference:
+
Response
========
diff --git a/docs/whatsnew-1.6.txt b/docs/whatsnew-1.6.txt
index 08be339..31a9982 100644
--- a/docs/whatsnew-1.6.txt
+++ b/docs/whatsnew-1.6.txt
@@ -65,8 +65,17 @@ Bugfixes
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 --git a/setup.cfg b/setup.cfg
index 4a5941e..d7aaa15 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -13,7 +13,7 @@ nocapture = True
universal = 1
[egg_info]
-tag_svn_revision = 0
tag_date = 0
tag_build =
+tag_svn_revision = 0
diff --git a/setup.py b/setup.py
index ecc2592..ba028d1 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ docs_extras = [
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 --git a/webob/exc.py b/webob/exc.py
index 5985a9c..3d6b3b8 100644
--- a/webob/exc.py
+++ b/webob/exc.py
@@ -188,11 +188,18 @@ tag_re = re.compile(r'<.*?>', re.S)
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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-webob.git
More information about the Python-modules-commits
mailing list