Skip to content

Commit

Permalink
Fix Flake8 issues after new flake8 release. (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed May 15, 2020
1 parent d5b3b3d commit 4b3e938
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ZPublisher/tests/testHTTPResponse.py
Expand Up @@ -1243,8 +1243,8 @@ def test___str__after_expireCookie(self):
response.expireCookie('qux', path='/')
result = bytes(response)
lines = result.split(b'\r\n')
cookie_line = [l for l in lines if b'Set-Cookie' in l][0]
other_lines = [l for l in lines if b'Set-Cookie' not in l]
cookie_line = [line for line in lines if b'Set-Cookie' in line][0]
other_lines = [line for line in lines if b'Set-Cookie' not in line]
self.assertEqual(len(lines), 6)
expected = {
b'Status: 200 OK',
Expand Down
6 changes: 3 additions & 3 deletions src/Zope2/utilities/zconsole.py
Expand Up @@ -38,9 +38,9 @@ def main(args=sys.argv):
import argparse
parser = argparse.ArgumentParser(description='Zope console')
parser.add_argument(
'mode',
choices=['run', 'debug'],
help='mode of operation, run: run script; debug: interactive console') # noqa: E501
'mode',
choices=['run', 'debug'],
help='mode of operation, run: run script; debug: interactive console') # noqa: E501
parser.add_argument('zopeconf', help='path to zope.conf')
parser.add_argument('scriptargs', nargs=argparse.REMAINDER)
namespace, unused = parser.parse_known_args(args[1:])
Expand Down

0 comments on commit 4b3e938

Please sign in to comment.