Mercurial > gub
changeset 3612:7246a43a2776
only complain for string values.
author | Han-Wen Nienhuys <hanwen@xs4all.nl> |
---|---|
date | Wed, 11 Jul 2007 13:34:54 -0700 |
parents | aff762cbf5b9 |
children | 346920ec2260 |
files | gub/context.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/context.py Wed Jul 11 11:57:23 2007 -0700 +++ b/gub/context.py Wed Jul 11 13:34:54 2007 -0700 @@ -57,7 +57,8 @@ self._parent = parent def __setattr__(self, k, v): - if k <> '_substitution_dict' and self._substitution_dict: + if (type(v) == type('') + and k <> '_substitution_dict' and self._substitution_dict): raise SetAttrTooLate((k, self)) self.__dict__[k] = v