From a4e3f827652c59d850b4e5506a92c1ecd190c1bb Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Thu, 22 Mar 2018 04:04:05 +1100 Subject: [PATCH] example: groups * Added a docstring. --- lang/python/examples/howto/groups.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)):