catacomb/__init__.py: Import `sys' as a whole.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 14 Jul 2017 22:16:02 +0000 (23:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 15 Jul 2017 14:07:09 +0000 (15:07 +0100)
We're only using `argv' in one place, so this isn't a significant
hardship.  And I'll want more things from `sys' soon.

catacomb/__init__.py

index 1a2b5f4..2bc3f55 100644 (file)
@@ -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.