Author: bugman Date: Wed Aug 26 10:56:29 2009 New Revision: 9388 URL: http://svn.gna.org/viewcvs/relax?rev=9388&view=rev Log: The is_str_or_inst() function now checks for the DummyFileObject object as well. This fixes a system test. Modified: 1.3/prompt/check.py Modified: 1.3/prompt/check.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/check.py?rev=9388&r1=9387&r2=9388&view=diff ============================================================================== --- 1.3/prompt/check.py (original) +++ 1.3/prompt/check.py Wed Aug 26 10:56:29 2009 @@ -25,6 +25,7 @@ # relax module imports. from relax_errors import RelaxBoolError, RelaxFloatError, RelaxIntError, RelaxIntListIntError, RelaxNoneFloatError, RelaxListNumError, RelaxListStrError, RelaxNoneIntError, RelaxNoneIntListIntError, RelaxNoneListNumError, RelaxNoneListStrError, RelaxNoneNumError, RelaxNoneNumStrListNumStrError, RelaxNoneNumTupleNumError, RelaxNoneStrError, RelaxNoneStrFileError, RelaxNoneStrListStrError, RelaxNumError, RelaxNumStrListNumStrError, RelaxNumTupleNumError, RelaxStrError, RelaxStrFileError, RelaxStrListStrError, RelaxTupleError, RelaxTupleNumError +from relax_io import DummyFileObject def is_bool(arg, name): @@ -468,7 +469,7 @@ return # Check for a string. - if isinstance(arg, str) or isinstance(arg, file): + if isinstance(arg, str) or isinstance(arg, file) or isinstance(arg, DummyFileObject): return # Fail.