Torsten Rottmann <[email protected]> added the comment: Proposed patch to fix this:
set the default of n to 1 as stated by docs: def _peek_unlocked(self, n=1): return n bytes: return self._read_buf[self._read_pos:self._read_pos+n] ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue5811> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
