commit | 057387c3df39c595a37c9721ea7a77d0a2daefb1 | [log] [tgz] |
---|---|---|
author | Kurt McKee <contactme@kurtmckee.org> | Wed Feb 07 22:10:38 2018 -0600 |
committer | Kurt McKee <contactme@kurtmckee.org> | Wed Feb 07 22:10:38 2018 -0600 |
tree | bc24f6a192cb4b8bc73628b2d1662208cb4368d9 | |
parent | 92d101613be41ecb2f2054c3f43a006fbe6f9966 [diff] [blame] |
Use absolute import everywhere This prevents Python 2.7 from attempting to import system modules like sys and ctypes from the 'serial' directory.
diff --git a/serial/tools/hexlify_codec.py b/serial/tools/hexlify_codec.py index 1371da2..bd8f6b0 100644 --- a/serial/tools/hexlify_codec.py +++ b/serial/tools/hexlify_codec.py
@@ -18,6 +18,8 @@ """ +from __future__ import absolute_import + import codecs import serial