Torsten Rottmann <tr...@meditec-gmbh.com> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue5811> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com