From cb46f06b084bb7574b6f7cde13bf413f58a1e91c Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Fri, 14 Jul 2017 23:16:02 +0100 Subject: [PATCH] catacomb/__init__.py: Import `sys' as a whole. Organization: Straylight/Edgeware From: Mark Wooding We're only using `argv' in one place, so this isn't a significant hardship. And I'll want more things from `sys' soon. (cherry picked from commit c04b289c577a5cdf6d5dd641f7b541d90a93adff) --- catacomb/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catacomb/__init__.py b/catacomb/__init__.py index 5e7aa89..854f8fe 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -29,14 +29,14 @@ import _base import types as _types from binascii import hexlify as _hexify, unhexlify as _unhexify from contextlib import contextmanager as _ctxmgr -from sys import argv as _argv +import sys as _sys from struct import pack as _pack ###-------------------------------------------------------------------------- ### Basic stuff. -## For the benefit of the default keyreporter, we need the program na,e. -_base._ego(_argv[0]) +## For the benefit of the default keyreporter, we need the program name. +_base._ego(_sys.argv[0]) ## How to fix a name back into the right identifier. Alas, the rules are not ## consistent. -- [mdw]