]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
environ import is used only in __main__
authorSergey Matveev <stargrave@stargrave.org>
Wed, 12 Feb 2020 10:57:18 +0000 (13:57 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 15 Feb 2020 17:48:42 +0000 (20:48 +0300)
pyderasn.py

index 5292c5cf70fb5d195a39efde500a8b9a6f7cc443..6da6e92706e2186339505e65c7743bc64f14ce89 100755 (executable)
@@ -671,7 +671,6 @@ from copy import copy
 from datetime import datetime
 from datetime import timedelta
 from math import ceil
-from os import environ
 from string import ascii_letters
 from string import digits
 from sys import version_info
@@ -6374,6 +6373,7 @@ def main():  # pragma: no cover
     if args.defines_by_path is not None:
         ctx["defines_by_path"] = obj_by_path(args.defines_by_path)
     obj, tail = schema().decode(der, ctx=ctx)
+    from os import environ
     print(pprinter(
         obj,
         oid_maps=oid_maps,