[pypy-svn] pypy default: Make sure BZ2File has a writelines method.
alex_gaynor
commits-noreply at bitbucket.org
Fri Feb 11 04:43:25 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r41806:0a8c4bf2785c
Date: 2011-02-10 22:43 -0500
http://bitbucket.org/pypy/pypy/changeset/0a8c4bf2785c/
Log: Make sure BZ2File has a writelines method.
diff --git a/pypy/module/bz2/interp_bz2.py b/pypy/module/bz2/interp_bz2.py
--- a/pypy/module/bz2/interp_bz2.py
+++ b/pypy/module/bz2/interp_bz2.py
@@ -290,7 +290,7 @@
same_attributes_as_in_file.remove('__init__')
same_attributes_as_in_file.extend([
'name', 'mode', 'encoding', 'closed', 'newlines', 'softspace',
- '__weakref__'])
+ 'writelines', '__weakref__'])
W_BZ2File.typedef = TypeDef(
"BZ2File",
More information about the Pypy-commit
mailing list