Skip to content
Myr

Put two spaces before inline comments when there is only one space.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

PEP8 (E261) suggests to use at least two spaces before inline comments.

authored by Petr Zemek · committed by Petr Zemek · parent 4840fc0 · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−4 removed

  • tests:+2 added−2 removed
  • other:+2 added−2 removed

3 files+4 added−4 removed

modified:flask/app.py+1 added-1 removed
287 unmodified lines
288 'SESSION_COOKIE_HTTPONLY': True,289 'SESSION_COOKIE_SECURE': False,290 'SESSION_REFRESH_EACH_REQUEST': True,291 'MAX_CONTENT_LENGTH': None,292 'SEND_FILE_MAX_AGE_DEFAULT': 12 * 60 * 60, # 12 hours292 'SEND_FILE_MAX_AGE_DEFAULT': 12 * 60 * 60, # 12 hours293 'TRAP_BAD_REQUEST_ERRORS': False,294 'TRAP_HTTP_EXCEPTIONS': False,295 'EXPLAIN_TEMPLATE_LOADING': False,296 'PREFERRED_URL_SCHEME': 'http',
1611 unmodified lines
modified:flask/helpers.py+1 added-1 removed
571 unmodified lines
572 @app.route('/wiki/<path:filename>')573 def wiki_page(filename):574 filename = safe_join(app.config['WIKI_FOLDER'], filename)575 with open(filename, 'rb') as fd:576 content = fd.read() # Read and process the file content...576 content = fd.read() # Read and process the file content...577578 :param directory: the base directory.579 :param filename: the untrusted filename relative to that directory.580 :raises: :class:`~werkzeug.exceptions.NotFound` if the resulting path
323 unmodified lines
modified:tests/test_templating.py+2 added-2 removed
285 unmodified lines
286 return {'whiskey': 'Jameson'}287 @app.route('/')288 def index():289 return flask.render_template(290 ['no_template.xml', # should skip this one291 'simple_template.html', # should render this290 ['no_template.xml', # should skip this one291 'simple_template.html', # should render this292 'context_template.html'],293 value=23)294295 rv = app.test_client().get('/')
44 unmodified lines