double negation in error msg

This commit is contained in:
gwen 2013-09-16 15:21:08 +02:00
parent 327cce6fed
commit ffc9d086f9
1 changed files with 2 additions and 2 deletions

View File

@ -718,7 +718,7 @@ class IPOption(Option):
def _validate(self, value):
ip = IP('{0}/32'.format(value))
if ip.iptype() == 'RESERVED':
raise ValueError(_("IP mustn't not be in reserved class"))
raise ValueError(_("IP shall not be in reserved class"))
if self._only_private and not ip.iptype() == 'PRIVATE':
raise ValueError(_("IP must be in private class"))
@ -800,7 +800,7 @@ class NetworkOption(Option):
def _validate(self, value):
ip = IP(value)
if ip.iptype() == 'RESERVED':
raise ValueError(_("network mustn't not be in reserved class"))
raise ValueError(_("network shall not be in reserved class"))
class NetmaskOption(Option):