From 59f9515264bb45d7cbc72c3a02840c8dbbe64070 Mon Sep 17 00:00:00 2001 From: Ron Rothman Date: Fri, 5 May 2017 15:20:33 -0400 Subject: [PATCH 1/2] fix a TypeError werkzueg.contrib.lint.GuardedIterator.close, due to misplaced paren --- CHANGES | 1 + werkzeug/contrib/lint.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index af1c65ac5..f2113d2ac 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,7 @@ yet to be released 4093 bytes. Browsers may silently ignore cookies larger than this. ``BaseResponse`` has a new attribute ``max_cookie_size`` and ``dump_cookie`` has a new argument ``max_size`` to configure this. (`#780`_, `#1109`_) +- Fix a TypeError in ``werkzueg.contrib.lint.GuardedIterator.close``. .. _`#780`: https://github.com/pallets/werkzeug/pull/780 .. _`#1109`: https://github.com/pallets/werkzeug/pull/1109 diff --git a/werkzeug/contrib/lint.py b/werkzeug/contrib/lint.py index 7ec80ce99..969c68741 100644 --- a/werkzeug/contrib/lint.py +++ b/werkzeug/contrib/lint.py @@ -172,7 +172,7 @@ def close(self): elif 100 <= status_code < 200 or status_code == 204: if content_length != 0: warn(HTTPWarning('%r responses must have an empty ' - 'content length') % status_code) + 'content length' % status_code)) if bytes_sent: warn(HTTPWarning('%r responses must not have a body' % status_code)) From 1a25b41acaf0f656458f6a026a7e9311641cce6b Mon Sep 17 00:00:00 2001 From: Ron Rothman Date: Fri, 5 May 2017 17:05:31 -0400 Subject: [PATCH 2/2] fix typo --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f2113d2ac..36cbbe1b8 100644 --- a/CHANGES +++ b/CHANGES @@ -20,7 +20,7 @@ yet to be released 4093 bytes. Browsers may silently ignore cookies larger than this. ``BaseResponse`` has a new attribute ``max_cookie_size`` and ``dump_cookie`` has a new argument ``max_size`` to configure this. (`#780`_, `#1109`_) -- Fix a TypeError in ``werkzueg.contrib.lint.GuardedIterator.close``. +- Fix a TypeError in ``werkzeug.contrib.lint.GuardedIterator.close``. .. _`#780`: https://github.com/pallets/werkzeug/pull/780 .. _`#1109`: https://github.com/pallets/werkzeug/pull/1109