diff hgext/shelve.py @ 31176:99c5843b228d

config: add sanity assert that files are opened as binary This helps with some debugging in Python 3, and shouldn't hurt anything in Python 2. The unusual construction using getattr is done so that StringIO/BytesIO instances can be used as well as real files.
author Augie Fackler <raf@durin42.com>
date Fri, 03 Mar 2017 12:55:11 -0500
parents 356937ea7a02
children 636f55b9ba23
line wrap: on
line diff