|
|
@ -49,7 +49,7 @@ Any of the following is functionally equivalent:: |
|
|
|
response = send_file(open(fname), attachment_filename=fname) |
|
|
|
response = send_file(open(fname), attachment_filename=fname) |
|
|
|
response.set_etag(...) |
|
|
|
response.set_etag(...) |
|
|
|
|
|
|
|
|
|
|
|
The reason for this is that some file-like objects have a invalid or even |
|
|
|
The reason for this is that some file-like objects have an invalid or even |
|
|
|
misleading ``name`` attribute. Silently swallowing errors in such cases was not |
|
|
|
misleading ``name`` attribute. Silently swallowing errors in such cases was not |
|
|
|
a satisfying solution. |
|
|
|
a satisfying solution. |
|
|
|
|
|
|
|
|
|
|
@ -198,7 +198,7 @@ applications with Flask. Because we want to make upgrading as easy as |
|
|
|
possible we tried to counter the problems arising from these changes by |
|
|
|
possible we tried to counter the problems arising from these changes by |
|
|
|
providing a script that can ease the transition. |
|
|
|
providing a script that can ease the transition. |
|
|
|
|
|
|
|
|
|
|
|
The script scans your whole application and generates an unified diff with |
|
|
|
The script scans your whole application and generates a unified diff with |
|
|
|
changes it assumes are safe to apply. However as this is an automated |
|
|
|
changes it assumes are safe to apply. However as this is an automated |
|
|
|
tool it won't be able to find all use cases and it might miss some. We |
|
|
|
tool it won't be able to find all use cases and it might miss some. We |
|
|
|
internally spread a lot of deprecation warnings all over the place to make |
|
|
|
internally spread a lot of deprecation warnings all over the place to make |
|
|
|