[Python-modules-commits] [python-tornado] 01/11: Import python-tornado_4.4.3.orig.tar.gz

Ondřej Nový onovy at moszumanska.debian.org
Sat Apr 8 11:17:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

onovy pushed a commit to branch master
in repository python-tornado.

commit c880b2d287eaa8696152bea04f15ff37ab39f837
Author: Ondřej Nový <onovy at debian.org>
Date:   Sat Apr 8 13:04:45 2017 +0200

    Import python-tornado_4.4.3.orig.tar.gz
---
 docs/releases.rst         |  1 +
 docs/releases/v4.4.3.rst  | 12 ++++++++++++
 setup.py                  |  2 +-
 tornado/__init__.py       |  4 ++--
 tornado/auth.py           |  4 ++--
 tornado/test/auth_test.py |  2 +-
 6 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/docs/releases.rst b/docs/releases.rst
index a9bfa1c..23f0966 100644
--- a/docs/releases.rst
+++ b/docs/releases.rst
@@ -4,6 +4,7 @@ Release notes
 .. toctree::
    :maxdepth: 2
 
+   releases/v4.4.3
    releases/v4.4.2
    releases/v4.4.1
    releases/v4.4.0
diff --git a/docs/releases/v4.4.3.rst b/docs/releases/v4.4.3.rst
new file mode 100644
index 0000000..888ca35
--- /dev/null
+++ b/docs/releases/v4.4.3.rst
@@ -0,0 +1,12 @@
+What's new in Tornado 4.4.3
+===========================
+
+Mar 30, 2017
+------------
+
+Bug fixes
+~~~~~~~~~
+
+* The `tornado.auth` module has been updated for compatibility with `a
+  change to Facebook's access_token endpoint.
+  <https://github.com/tornadoweb/tornado/pull/1977>`_
diff --git a/setup.py b/setup.py
index 8d81095..0d35a3f 100644
--- a/setup.py
+++ b/setup.py
@@ -103,7 +103,7 @@ http://api.mongodb.org/python/current/installation.html#osx
 
 kwargs = {}
 
-version = "4.4.2"
+version = "4.4.3"
 
 with open('README.rst') as f:
     kwargs['long_description'] = f.read()
diff --git a/tornado/__init__.py b/tornado/__init__.py
index 3b10da5..07766a1 100644
--- a/tornado/__init__.py
+++ b/tornado/__init__.py
@@ -25,5 +25,5 @@ from __future__ import absolute_import, division, print_function, with_statement
 # is zero for an official release, positive for a development branch,
 # or negative for a release candidate or beta (after the base version
 # number has been incremented)
-version = "4.4.2"
-version_info = (4, 4, 2, 0)
+version = "4.4.3"
+version_info = (4, 4, 3, 0)
diff --git a/tornado/auth.py b/tornado/auth.py
index 4414406..63be238 100644
--- a/tornado/auth.py
+++ b/tornado/auth.py
@@ -978,9 +978,9 @@ class FacebookGraphMixin(OAuth2Mixin):
             future.set_exception(AuthError('Facebook auth error: %s' % str(response)))
             return
 
-        args = urlparse.parse_qs(escape.native_str(response.body))
+        args = escape.json_decode(response.body)
         session = {
-            "access_token": args["access_token"][-1],
+            "access_token": args.get("access_token"),
             "expires": args.get("expires")
         }
 
diff --git a/tornado/test/auth_test.py b/tornado/test/auth_test.py
index 92616fa..154954b 100644
--- a/tornado/test/auth_test.py
+++ b/tornado/test/auth_test.py
@@ -149,7 +149,7 @@ class FacebookClientLoginHandler(RequestHandler, FacebookGraphMixin):
 
 class FacebookServerAccessTokenHandler(RequestHandler):
     def get(self):
-        self.write('access_token=asdf')
+        self.write(dict(access_token="asdf"))
 
 
 class FacebookServerMeHandler(RequestHandler):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git



More information about the Python-modules-commits mailing list