Python examples: backwards compatibility
authorBen McGinnes <ben@adversary.org>
Sat, 15 Sep 2018 02:10:05 +0000 (12:10 +1000)
committerBen McGinnes <ben@adversary.org>
Sat, 15 Sep 2018 02:10:05 +0000 (12:10 +1000)
commit864ef9b40f5f9d0c66a458b6033277938d7d1d50
treec012ddff266f729946baea90c2338ec3d9c9716e
parentdd7d37ca21684d4d77db4f513c6212776fc6ea82
Python examples: backwards compatibility

* lang/python/examples/howto/groups.py: subprocess update
* lang/python/examples/howto/export-secret-keys.py: subprocess update

  Both of these try the nice and easy method of getting the subprocess
  output available in Python 3, but will fall back to the older Popen
  method if it doesn't work.  Essentially this is to be a little nicer
  to Python 2.7.15 (even though the examples are filled with warnings
  that py2 support is not guaranteed with the examples).
lang/python/examples/howto/export-secret-keys.py
lang/python/examples/howto/groups.py