Skip to content
Myr

Fix typos/grammar in docs (#2201)

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

authored by Static · committed by Adrian · parent 06112a5 · Browse files · 6 files+8 added−8 removed
This commit

State

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

Diff stats

6 files+8 added−8 removed

  • other:+8 added−8 removed

6 files+8 added−8 removed

modified:docs/patterns/fileuploads.rst+1 added-1 removed
56 unmodified lines
57 flash('No file part')58 return redirect(request.url)59 file = request.files['file']60 # if user does not select file, browser also61 # submit a empty part without filename61 # submit an empty part without filename62 if file.filename == '':63 flash('No selected file')64 return redirect(request.url)65 if file and allowed_file(file.filename):
119 unmodified lines
modified:docs/conf.py+1 added-1 removed
232 unmodified lines
233234# The scheme of the identifier. Typical schemes are ISBN or URL.235#epub_scheme = ''236237# The unique identifier of the text. This can be a ISBN number237# The unique identifier of the text. This can be an ISBN number238# or the project homepage.239#epub_identifier = ''240241# A unique identification for the text.
61 unmodified lines
modified:docs/styleguide.rst+1 added-1 removed
165 unmodified lines
166 is on its own line.167 """168169Module header:170 The module header consists of an utf-8 encoding declaration (if non170 The module header consists of a utf-8 encoding declaration (if non171 ASCII letters are used, but it is recommended all the time) and a172 standard docstring::173174 # -*- coding: utf-8 -*-
26 unmodified lines
modified:docs/upgrading.rst+2 added-2 removed
47 unmodified lines
48 # ETag still needs to be manually set49 response = send_file(open(fname), attachment_filename=fname)50 response.set_etag(...)5152The reason for this is that some file-like objects have a invalid or even52The reason for this is that some file-like objects have an invalid or even53misleading ``name`` attribute. Silently swallowing errors in such cases was not54a satisfying solution.5556Additionally the default of falling back to ``application/octet-stream`` has
140 unmodified lines
197applications with Flask. Because we want to make upgrading as easy as198possible we tried to counter the problems arising from these changes by199providing a script that can ease the transition.200201The script scans your whole application and generates an unified diff with201The script scans your whole application and generates a unified diff with202changes it assumes are safe to apply. However as this is an automated203tool it won't be able to find all use cases and it might miss some. We204internally spread a lot of deprecation warnings all over the place to make205it easy to find pieces of code that it was unable to upgrade.
267 unmodified lines
modified:flask/app.py+2 added-2 removed
389 unmodified lines
390 #: special key ``None`` points to a list of tuples where the first item391 #: is the class for the instance check and the second the error handler392 #: function.393 #:394 #: To register a error handler, use the :meth:`errorhandler`394 #: To register an error handler, use the :meth:`errorhandler`395 #: decorator.396 self.error_handler_spec = {None: self._error_handlers}397398 #: A list of functions that are called when :meth:`url_for` raises a
954 unmodified lines
1353 that they will fail. If they do execute code that might fail they1354 will have to surround the execution of these code by try/except1355 statements and log occurring errors.13561357 When a teardown function was called because of a exception it will1357 When a teardown function was called because of an exception it will1358 be passed an error object.13591360 The return values of teardown functions are ignored.1361
646 unmodified lines
modified:scripts/flask-07-upgrade.py+1 added-1 removed
3 unmodified lines
4 flask-07-upgrade5 ~~~~~~~~~~~~~~~~67 This command line script scans a whole application tree and attempts to8 output an unified diff with all the changes that are necessary to easily8 output a unified diff with all the changes that are necessary to easily9 upgrade the application to 0.7 and to not yield deprecation warnings.1011 This will also attempt to find `after_request` functions that don't modify12 the response and appear to be better suited for `teardown_request`.
286 unmodified lines