catacomb/__init__.py: Rearrange the imports.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 14 Jul 2017 22:18:13 +0000 (23:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:11 +0000 (22:18 +0000)
Sort the ordinary Python imports into alphabetical order (by module
name, rather than by import, if I'm only taking one or two symbols).
Move the main extension import into its own section, because it's going
to grow.

(cherry picked from commit 378ceeef4e0663d913cb448c32022522d39e7848)

catacomb/__init__.py

index 854f8fe..53d7cea 100644 (file)
 
 from __future__ import with_statement
 
-import _base
-import types as _types
 from binascii import hexlify as _hexify, unhexlify as _unhexify
 from contextlib import contextmanager as _ctxmgr
-import sys as _sys
 from struct import pack as _pack
+import sys as _sys
+import types as _types
+
+###--------------------------------------------------------------------------
+### Import the main C extension module.
+
+import _base
 
 ###--------------------------------------------------------------------------
 ### Basic stuff.