Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7c9530

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

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/matplotlib/__init__.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,21 @@
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, distutils.sysconfig
110+
import functools
111111
import io
112112
import inspect
113+
import itertools
113114
import locale
114115
import os
115116
import re
117+
import sys
116118
import tempfile
117119
import warnings
118-
import contextlib
119-
import distutils.sysconfig
120-
import functools
120+
121121
# cbook must import matplotlib only within function
122122
# definitions, so it is safe to import from it here.
123123
from . import cbook
@@ -798,9 +798,8 @@ def gen_candidates():
798798
# The following may use a value of None to suppress the warning.
799799
_deprecated_set = {'axes.hold'} # do NOT include in _all_deprecated
800800

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

805804

806805
class RcParams(MutableMapping, dict):

0 commit comments

Comments
 (0)