From: Sergey Matveev Date: Wed, 23 Mar 2022 12:51:40 +0000 (+0300) Subject: sys.exit is more advisable X-Git-Tag: 5.11 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=934decb76f00bd0cd84d2e70cf66dc44ae96d000;hp=0564924d1ff1e08d86a5755206c97d3dac7c8acd;p=pygost.git sys.exit is more advisable --- diff --git a/pygost/asn1schemas/cert-selfsigned-example.py b/pygost/asn1schemas/cert-selfsigned-example.py index ae1ee00..bd562b1 100755 --- a/pygost/asn1schemas/cert-selfsigned-example.py +++ b/pygost/asn1schemas/cert-selfsigned-example.py @@ -8,6 +8,7 @@ from base64 import standard_b64encode from datetime import datetime from datetime import timedelta from os import urandom +from sys import exit as sys_exit from sys import stdout from textwrap import fill @@ -240,7 +241,7 @@ else: ))), file=out) print("-----END PRIVATE KEY-----", file=out) if args.only_key: - exit() + sys_exit() prv = prv_unmarshal(prv_raw) curve = ai["curve"]