Skip to content

Commit d0ae324

Browse files
committed
Minor reordering of imports.
1 parent 2ff0db1 commit d0ae324

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,22 @@
103103
unicode_literals)
104104

105105
import six
106-
import sys
107-
import distutils.version
108-
from itertools import chain
109106

110107
from collections import MutableMapping
108+
import contextlib
109+
import distutils.version
110+
import distutils.sysconfig
111+
import functools
111112
import io
112113
import inspect
114+
import itertools
113115
import locale
114116
import os
115117
import re
118+
import sys
116119
import tempfile
117120
import warnings
118-
import contextlib
119-
import distutils.sysconfig
120-
import functools
121+
121122
# cbook must import matplotlib only within function
122123
# definitions, so it is safe to import from it here.
123124
from . import cbook
@@ -798,9 +799,8 @@ def gen_candidates():
798799
# The following may use a value of None to suppress the warning.
799800
_deprecated_set = {'axes.hold'} # do NOT include in _all_deprecated
800801

801-
_all_deprecated = set(chain(_deprecated_ignore_map,
802-
_deprecated_map,
803-
_obsolete_set))
802+
_all_deprecated = set(itertools.chain(
803+
_deprecated_ignore_map, _deprecated_map, _obsolete_set))
804804

805805

806806
class RcParams(MutableMapping, dict):

0 commit comments

Comments
 (0)