[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.154,2.155

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 06 Apr 2002 22:28:03 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv25994

Modified Files:
	fileobject.c 
Log Message:
isatty() should return a bool.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.154
retrieving revision 2.155
diff -C2 -d -r2.154 -r2.155
*** fileobject.c	3 Apr 2002 22:41:51 -0000	2.154
--- fileobject.c	7 Apr 2002 06:28:00 -0000	2.155
***************
*** 566,570 ****
  	res = isatty((int)fileno(f->f_fp));
  	Py_END_ALLOW_THREADS
! 	return PyInt_FromLong(res);
  }
  
--- 566,570 ----
  	res = isatty((int)fileno(f->f_fp));
  	Py_END_ALLOW_THREADS
! 	return PyBool_FromLong(res);
  }