From: Mark Wooding Date: Fri, 14 Jul 2017 22:16:02 +0000 (+0100) Subject: catacomb/__init__.py: Import `sys' as a whole. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/cb46f06b084bb7574b6f7cde13bf413f58a1e91c?ds=sidebyside catacomb/__init__.py: Import `sys' as a whole. 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) --- 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.