mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-28 05:39:24 +01:00
Undo mtughan's bugfix from 7f9a113060
, so i can merge jamessan's fix ef8bd817e8
This commit is contained in:
parent
022193b61b
commit
35fee237da
@ -307,10 +307,8 @@ class Value(Group):
|
|||||||
if setDefault:
|
if setDefault:
|
||||||
self.setValue(default)
|
self.setValue(default)
|
||||||
|
|
||||||
def error(self, message=None):
|
def error(self):
|
||||||
if message:
|
if self.__doc__:
|
||||||
s = message
|
|
||||||
elif self.__doc__:
|
|
||||||
s = self.__doc__
|
s = self.__doc__
|
||||||
else:
|
else:
|
||||||
s = """%s has no docstring. If you're getting this message,
|
s = """%s has no docstring. If you're getting this message,
|
||||||
@ -541,7 +539,7 @@ class Regexp(Value):
|
|||||||
self.__parent.__init__(*args, **kwargs)
|
self.__parent.__init__(*args, **kwargs)
|
||||||
|
|
||||||
def error(self, e):
|
def error(self, e):
|
||||||
self.__parent.error('%s' % e)
|
self.__parent.error('Value must be a regexp of the form %s' % e)
|
||||||
|
|
||||||
def set(self, s):
|
def set(self, s):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user