From de894277ab90c25f1e5975fc19467274cb9e7481 Mon Sep 17 00:00:00 2001 From: Philip Forget Date: Fri, 30 Oct 2015 11:02:18 -0400 Subject: [PATCH 1/2] Dont pass optional function to dict getter Fixes #42 --- readability/auth.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/readability/auth.py b/readability/auth.py index 01e4a2d..124088e 100644 --- a/readability/auth.py +++ b/readability/auth.py @@ -45,10 +45,10 @@ def xauth(base_url_template=DEFAULT_READER_URL_TEMPLATE, **xargs): :param password: A password, otherwise read from READABILITY_PASSWORD. """ - consumer_key = xargs.get('consumer_key', required_from_env('READABILITY_CONSUMER_KEY')) - consumer_secret = xargs.get('consumer_secret', required_from_env('READABILITY_CONSUMER_SECRET')) - username = xargs.get('username', required_from_env('READABILITY_USERNAME')) - password = xargs.get('password', required_from_env('READABILITY_PASSWORD')) + consumer_key = xargs.get('consumer_key') or required_from_env('READABILITY_CONSUMER_KEY') + consumer_secret = xargs.get('consumer_secret') or required_from_env('READABILITY_CONSUMER_SECRET') + username = xargs.get('username') or required_from_env('READABILITY_USERNAME') + password = xargs.get('password') or required_from_env('READABILITY_PASSWORD') client = Client(consumer_key, client_secret=consumer_secret, signature_type='BODY') url = base_url_template.format(ACCESS_TOKEN_URL) diff --git a/setup.py b/setup.py index 8c67402..6cebbbd 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( name='readability-api', - version='1.0.1', + version='1.0.2', description='Python client for the Readability Reader and Parser APIs.', long_description=open('README.rst').read(), author='The Readability Team', From 4f1a119f2dc04cad75e647a000ae9041647153fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Feb 2021 20:13:46 +0000 Subject: [PATCH 2/2] Bump httplib2 from 0.9.1 to 0.19.0 Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.9.1 to 0.19.0. - [Release notes](https://github.com/httplib2/httplib2/releases) - [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG) - [Commits](https://github.com/httplib2/httplib2/compare/0.9.1...v0.19.0) Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 setup.py diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index 6cebbbd..17ea32c --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ 'pytest', 'requests', 'requests_oauthlib', - 'httplib2==0.9.1', + 'httplib2==0.19.0', 'python-dateutil', ]