Home GnuPG
Diffusion GPGME ae21d2705fc4

python: Check "buffer" when writing to sys.stdout for python2 compat.
ae21d2705fc4Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Check "buffer" when writing to sys.stdout for python2 compat.

* lang/python/tests/support.py (print_data): Add check for buffer.

When running with something like make -C lang/python check verbose=2 the
test would fail under python2, because the file objects do not have a
buffer property.

  • Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>

Details

Provenance
4tmuelleAuthored on Nov 30 2016, 11:08 PM
justusCommitted on Dec 1 2016, 5:39 PM
Parents
rM154389f2a5e4: python: Make Context have a repr method.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rMae21d2705fc4: python: Check "buffer" when writing to sys.stdout for python2 compat. (authored by Tobias Mueller <muelli@cryptobitch.de>).Dec 1 2016, 5:39 PM