diff --git a/changes/2187.misc b/changes/2187.misc new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/changes/2187.misc @@ -0,0 +1 @@ + diff --git a/demos/polls/aiohttpdemo_polls/utils.py b/demos/polls/aiohttpdemo_polls/utils.py index 45688130b65..f2c2f309900 100644 --- a/demos/polls/aiohttpdemo_polls/utils.py +++ b/demos/polls/aiohttpdemo_polls/utils.py @@ -1,8 +1,5 @@ import trafaret as T - -primitive_ip_regexp = r'^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$' - TRAFARET = T.Dict({ T.Key('postgres'): T.Dict({ @@ -14,6 +11,6 @@ 'minsize': T.Int(), 'maxsize': T.Int(), }), - T.Key('host'): T.String(regex=primitive_ip_regexp), + T.Key('host'): T.IP, T.Key('port'): T.Int(), })