]> Cypherpunks.ru repositories - pygost.git/commitdiff
sys.exit is more advisable 5.11
authorSergey Matveev <stargrave@stargrave.org>
Wed, 23 Mar 2022 12:51:40 +0000 (15:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 23 Mar 2022 12:51:40 +0000 (15:51 +0300)
pygost/asn1schemas/cert-selfsigned-example.py

index ae1ee00281f1f5b53576ab1f065b6588832b4bea..bd562b1c6caa6dbca8a8e698fd280f1cc4c39c3f 100755 (executable)
@@ -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"]