Skip to content
Myr

reword _get_exc_class_and_code docstring

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

authored by David Lord · committed by David Lord · parent d8d74b0 · Browse files · 1 file+5 added−3 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+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:flask/app.py+5 added-3 removed
1268 unmodified lines
1269 return decorator12701271 @staticmethod1272 def _get_exc_class_and_code(exc_class_or_code):1273 """Ensure that we register only exceptions as handler keys1273 """Get the exception class being handled. For HTTP status codes1274 or ``HTTPException`` subclasses, return both the exception and1275 status code.12761275 :param exc_class_or_code: the class for the exception, or1276 exception code as integer1277 :param exc_class_or_code: Any exception class, or an HTTP status1278 code as an integer.1279 """1280 if isinstance(exc_class_or_code, integer_types):1281 exc_class = default_exceptions[exc_class_or_code]1282 else:
1058 unmodified lines