summaryrefslogtreecommitdiffstats
path: root/base/server/sbin/pkidestroy
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-08-11 20:55:48 +0200
committerChristian Heimes <cheimes@redhat.com>2015-08-14 13:03:18 +0200
commit12badcabc1cd345256a4902f7b0583cf667ecd8d (patch)
treed0a45d096fab9c0b14d5221557a616824ecfd24a /base/server/sbin/pkidestroy
parentd63ade55f5cc2a9ecf21ea2b43cfac80149c4c29 (diff)
downloadpki-12badcabc1cd345256a4902f7b0583cf667ecd8d.tar.gz
pki-12badcabc1cd345256a4902f7b0583cf667ecd8d.tar.xz
pki-12badcabc1cd345256a4902f7b0583cf667ecd8d.zip
Make pki PEP 8 compatible
Large portions of the patch was automatically created with autopep8: find base/ -name '*.py' | xargs autopep8 --in-place --ignore E309 \ --aggressive find base/common/upgrade base/server/upgrade -type f -and \ -not -name .gitignore | autopep8 --in-place --ignore E309 --aggressive autopep8 --in-place --ignore E309 --aggressive \ base/common/sbin/pki-upgrade \ base/server/sbin/pkispawn \ base/server/sbin/pkidestroy \ base/server/sbin/pki-server \ base/server/sbin/pki-server-upgrade About two dozent violations were fixed manually. https://fedorahosted.org/pki/ticket/708
Diffstat (limited to 'base/server/sbin/pkidestroy')
-rwxr-xr-xbase/server/sbin/pkidestroy6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/server/sbin/pkidestroy b/base/server/sbin/pkidestroy
index abc11dc8d..fa5232e10 100755
--- a/base/server/sbin/pkidestroy
+++ b/base/server/sbin/pkidestroy
@@ -45,11 +45,11 @@ There was a problem importing one of the required Python modules. The
error was:
%s
-""" % sys.exc_value
+""" % sys.exc_info()[1]
sys.exit(1)
-#Handle the Keyboard Interrupt
+# Handle the Keyboard Interrupt
# pylint: disable=W0613
def interrupt_handler(event, frame):
print
@@ -114,7 +114,7 @@ def main(argv):
action='store',
nargs=1, metavar='<security domain user>',
help='security domain user')
-
+
parser.optional.add_argument(
'-W',
dest='pki_secdomain_pass_file',