From 6ae408c2763dfe77f38c6e8af83029dfad7521d1 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 4 Nov 2018 16:52:54 -0800 Subject: [PATCH] Remove workaround for older Pythons importlib.import_module is available since Python 2.7. --- import_export/formats/base_formats.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/import_export/formats/base_formats.py b/import_export/formats/base_formats.py index 7933760..68169a6 100644 --- a/import_export/formats/base_formats.py +++ b/import_export/formats/base_formats.py @@ -4,6 +4,7 @@ from django.utils.six import moves import sys import warnings import tablib +from importlib import import_module try: from tablib.compat import xlrd @@ -35,12 +36,6 @@ except ImportError: XLSX_IMPORT = False -try: - from importlib import import_module -except ImportError: - from django.utils.importlib import import_module - - class Format(object): def get_title(self): return type(self)