From: Sergey Matveev Date: Wed, 23 Mar 2022 12:51:40 +0000 (+0300) Subject: sys.exit is more advisable X-Git-Tag: 5.11^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=7c81d18aac97d24c40d079ce969998bc16f65a17 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"]