diff options
author | zsquareplusc <cliechti@gmx.net> | 2016-10-11 23:23:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 23:23:03 +0200 |
commit | 876865522bb08c267cae075e4ef763ce3f491c18 (patch) | |
tree | d8c9befd52c2758396f824e4de7d41d0dc061c62 | |
parent | 95260888e9a7e25b1d8dbb772f1ef2975fe795ef (diff) | |
parent | d08b7de63712d5f5c9c5fca6a15517da65ba14cb (diff) | |
download | pyserial-git-876865522bb08c267cae075e4ef763ce3f491c18.tar.gz |
Merge pull request #136 from rob-smallshire/regular_package
serial cannot be a namespace package as it exports names
-rw-r--r-- | serial/__init__.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/serial/__init__.py b/serial/__init__.py index 3874193..5d862e8 100644 --- a/serial/__init__.py +++ b/serial/__init__.py @@ -7,10 +7,8 @@ # # SPDX-License-Identifier: BSD-3-Clause -import importlib import sys -from pkgutil import extend_path - +import importlib from serial.serialutil import * #~ SerialBase, SerialException, to_bytes, iterbytes @@ -19,9 +17,6 @@ __version__ = '3.1.1' VERSION = __version__ -# serial is a namespace package -__path__ = extend_path(__path__, __name__) - # pylint: disable=wrong-import-position if sys.platform == 'cli': from serial.serialcli import Serial |