chiark / gitweb /
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>
Sat, 15 Jul 2017 14:07:09 +0000 (15:07 +0100)
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.

catacomb/__init__.py

index 2bc3f5546ab9113aa4867c2bae6b4083a520c987..0ce4d0494fd9232d96662b293c42d5a95bd4e784 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.