Skip to content
Myr

Killed now dead code

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

authored by Armin Ronacher · committed by Armin Ronacher · parent a30951e · Browse files · 1 file+0 added−5 removed
This commit

State

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

Diff stats

1 file+0 added−5 removed

  • other:+0 added−5 removed

1 file+0 added−5 removed

modified:flask/helpers.py-5 removed
515 unmodified lines
516 mimetype = mimetypes.guess_type(attachment_filename)[0] \517 or 'application/octet-stream'518519 if mimetype is None:520 if attachment_filename is not None:521 raise ValueError(522 'Unable to infer MIME-type from filename {0!r}, please '523 'pass one explicitly.'.format(attachment_filename)524 )520 raise ValueError(521 'Unable to infer MIME-type because no filename is available. '522 'Please set either `attachment_filename`, pass a filepath to '523 '`filename_or_fp` or set your own MIME-type via `mimetype`.'
419 unmodified lines