From 9e1fd25a385104e11f42fbbd73539e98619af17d Mon Sep 17 00:00:00 2001 From: Sebastiaan Lokhorst Date: Sun, 7 Feb 2021 16:10:54 +0100 Subject: [PATCH] Remove Python 2 legacy According to the readme, we don't support Python 2. In Python 3, map is a built-in function. --- Adafruit_IO/model.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Adafruit_IO/model.py b/Adafruit_IO/model.py index 04bb0c8..4075856 100644 --- a/Adafruit_IO/model.py +++ b/Adafruit_IO/model.py @@ -19,12 +19,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from collections import namedtuple -# Handle python 2 and 3 (where map functions like itertools.imap) -try: - from itertools import imap as map -except ImportError: - # Ignore import error on python 3 since map already behaves as expected. - pass # List of fields/properties that are present on a data object from IO.