Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update webob to 1.7.4 #407

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link

There's a new version of WebOb available.
You are currently using 1.4. I have updated it to 1.7.4

These links might come in handy: PyPI | Changelog | Homepage

Changelog

1.7rc1


Compatibility

  • WebOb is no longer supported on Python 2.6 and PyPy3 (due to pip no longer
    supporting Python 3.2 even on PyPy)

Backwards Incompatibility

  • Response.set_cookie no longer accepts a key argument. This was deprecated
    in WebOb 1.5 and as mentioned in the deprecation, is being removed in 1.7
  • Response.__init__ will no longer set the default Content-Type, nor
    Content-Length on Responses that don't have a body. This allows WebOb to
    return proper responses for things like Response(status='204 No Content').
  • Response.text will no longer raise if the Content-Type does not have a
    charset, it will fall back to using the new default_body_encoding`. To get the old behaviour back please sub-class Responseand set default_body_encodingtoNone``. See
    Feature: default body encoding Pylons/webob#287

Feature

Bugfix

  • Fixup cgi.FieldStorage on Python 3.x to work-around issue reported in
    Python bug report 27777 and 24764. This is currently applied for Python
    versions less than 3.7. See Bugfix: cgi FieldStorage Pylons/webob#294
  • 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
    Move the _lazified class out of the lazify function Pylons/webob#284
  • Response.json's json.dumps/json.loads are now always UTF-8. It no
    longer tries to use the charset.
  • Response now has a new property named has_body that may be used to
    interrogate the Response to find out if Response.body is or isn't
    set.

This is used in the exception handling code so that if you use a WebOb HTTP
Exception and pass a generator to app_iter WebOb won't attempt to read
the whole thing and instead allows it to be returned to the WSGI server. See
Pylons/webob#259

1.6.0


Compatibility

  • Python 3.2 is no longer supported by WebOb

Bugfix

Features

Security

1.5.1


Bug Fixes

  • The exceptions HTTPNotAcceptable, HTTPUnsupportedMediaType and
    HTTPNotImplemented will now correctly use the sub-classed template rather
    than the default error template. See bugs in exc.py Pylons/webob#221

1.5.0


Bug Fixes

  • The cookie API functions will now make sure that max_age is an integer or
    an string that can convert to an integer. Previously passing in
    max_age='test' would have silently done the wrong thing.

Features

Backwards Incompatibilities

  • Response.set_cookie renamed the only required parameter from "key" to
    "name". The code will now still accept "key" as a keyword argument, and will
    issue a DeprecationWarning until WebOb 1.7.
  • The status attribute of a Response object no longer takes a string
    like None None and allows that to be set as the status. It now has to at
    least match the pattern of <integer status code> <explenation of status code>. Invalid status strings will now raise a ValueError.

1.5.0a0


Backwards Incompatibilities

The cookie-octet specification in RFC6265 states the following characters are
valid in a cookie value:

=============== =======================================
Hex Range Actual Characters
=============== =======================================
[0x21 ] !
[0x25-0x2B] $%&'()*+
[0x2D-0x3A] -./0123456789:
[0x3C-0x5B] <=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[
[0x5D-0x7E] ]^_`abcdefghijklmnopqrstuvwxyz{|}~
=============== =======================================

RFC6265 suggests using base 64 to serialize data before storing data in a
cookie.

Cookies that meet the RFC6265 standard will no longer be quoted, as this is
unnecessary. This is a no-op as far as browsers and cookie storage is
concerned.

Features

Bug Fixes

  • Fixed a bug in webob.multidict.GetDict which resulted in the
    QUERY_STRING not being updated when changes were made to query
    params using Request.GET.extend().

Documentation Changes

  • Remove the WebDAV only from certain HTTP Exceptions, these exceptions may
    also be used by REST services for example.

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@symroe symroe closed this Jan 30, 2018
@symroe symroe deleted the pyup-update-webob-1.4-to-1.7.4 branch June 27, 2018 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants