Skip to content

Commit

Permalink
fix: move cffi import
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox committed Mar 18, 2020
1 parent d12fb17 commit 948b5a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/crc32c/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

import warnings

# NOTE: ``__config__`` **must** be the first import because it (may)
# modify the search path used to locate shared libraries.
import crc32c.__config__

_SLOW_CRC32C_WARNING = (
"Currently using crcmod in pure python form. This is a slow "
"implementation. If you can compile a c extension, you will have much "
Expand Down
3 changes: 3 additions & 0 deletions src/crc32c/cffi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import struct

# NOTE: ``__config__`` **must** be the first import because it (may)
# modify the search path used to locate shared libraries.
import crc32c.__config__
import crc32c._crc32c_cffi

def extend(crc, chunk):
Expand Down

0 comments on commit 948b5a0

Please sign in to comment.