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/rs485.py b/serial/rs485.py index 2939350..d7aff6f 100644 --- a/serial/rs485.py +++ b/serial/rs485.py
@@ -13,6 +13,8 @@ NOTE: Some implementations may only support a subset of the settings. """ +from __future__ import absolute_import + import time import serial