Fix 0 port value being overriden by default

By explicitly comparing port value with None,
instead of using its bool() value.
This commit is contained in:
vorelq 2018-09-29 18:38:32 +02:00 committed by David Lord
parent 05102f63b8
commit e1cc16f8be
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 14 additions and 8 deletions

View file

@ -42,6 +42,8 @@ Unreleased
:pr:`3195`
- Allow customizing the :attr:`Flask.url_map_class` used for routing.
:pr:`3069`
- The development server port can be set to 0, which tells the OS to
pick an available port. :issue:`2926`
.. _#2935: https://github.com/pallets/flask/issues/2935
.. _#2957: https://github.com/pallets/flask/issues/2957