Support name and mode attributes on all file types.
Don't read more than one line when reading text from a tty device. Add peek() and read1() methods. Return str instead of unicode when return ASCII characters in text mode.
G
Guido van Rossum committed
13633bb8c5bd2dbd2b9955539495ac6fb632776c
Parent: 913dd0b