# HG changeset patch # User Katia Saurfelt # Date 1329228959 -3600 # Node ID 83fd9ff90a9df8914bf75dd8a2ab92c09108a836 # Parent 9b9180969892db137d4dd884c7572213d76949ec [binary] use seek(0) in `from_file` Binary creation method (closes #2189183) diff -r 9b9180969892 -r 83fd9ff90a9d __init__.py --- a/__init__.py Tue Feb 14 15:15:09 2012 +0100 +++ b/__init__.py Tue Feb 14 15:15:59 2012 +0100 @@ -117,6 +117,7 @@ binary.write(chunk) else: binary.write(fobj.read()) + binary.seek(0) return binary