aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/groups.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-21 17:04:05 +0000
committerBen McGinnes <[email protected]>2018-03-21 17:04:05 +0000
commita4e3f827652c59d850b4e5506a92c1ecd190c1bb (patch)
treec5c65cddaaeded558f9ebcee456384c5cabe3ea7 /lang/python/examples/howto/groups.py
parentexample: verify signatures (diff)
downloadgpgme-a4e3f827652c59d850b4e5506a92c1ecd190c1bb.tar.gz
gpgme-a4e3f827652c59d850b4e5506a92c1ecd190c1bb.zip
example: groups
* Added a docstring.
Diffstat (limited to 'lang/python/examples/howto/groups.py')
-rw-r--r--lang/python/examples/howto/groups.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/python/examples/howto/groups.py b/lang/python/examples/howto/groups.py
index 67fd7838..e7adc440 100644
--- a/lang/python/examples/howto/groups.py
+++ b/lang/python/examples/howto/groups.py
@@ -25,6 +25,12 @@ from __future__ import absolute_import, division, unicode_literals
import subprocess
+"""
+Intended for use with other scripts.
+
+Usage: from groups import group_lines, group_lists
+"""
+
lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
for i in range(len(lines)):