Author: Richard Plangger <planri...@gmail.com> Branch: py3.5 Changeset: r90291:d9c088e677ba Date: 2017-02-22 11:34 +0100 http://bitbucket.org/pypy/pypy/changeset/d9c088e677ba/
Log: audioop, check_size also accepts size == 3 now diff --git a/lib_pypy/audioop.py b/lib_pypy/audioop.py --- a/lib_pypy/audioop.py +++ b/lib_pypy/audioop.py @@ -13,9 +13,8 @@ def _check_size(size): - if size != 1 and size != 2 and size != 4: - raise error("Size should be 1, 2 or 4") - + if size < 1 or size > 4: + raise error("Size should be 1, 2, 3 or 4") def _check_params(length, size): _check_size(size) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit