From b4014d12517af93a860e73c1f85d79b5b31068e1 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 1 Aug 2018 09:46:38 +0200 Subject: flake8-bugbear --- _test/lib/test_constructor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_test/lib') diff --git a/_test/lib/test_constructor.py b/_test/lib/test_constructor.py index 87e7a6d..d10ea4d 100644 --- a/_test/lib/test_constructor.py +++ b/_test/lib/test_constructor.py @@ -257,7 +257,7 @@ def _make_objects(): try: from ruamel.ordereddict import ordereddict -except: +except ImportError: from collections import OrderedDict # to get the right name import ... as ordereddict doesn't do that -- cgit v1.2.1