Skip to content

Commit cfcda5f

Browse files
committed
CLN: move import to top of file
For consistency with [PEP8][1]: Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants. [1]: https://www.python.org/dev/peps/pep-0008#id17
1 parent a3e478d commit cfcda5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/config.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import re
5252

5353
from collections import namedtuple
54+
from contextlib import contextmanager
5455
import warnings
5556
from pandas.compat import map, lmap, u
5657
import pandas.compat as compat
@@ -681,8 +682,6 @@ def pp(name, ks):
681682
#
682683
# helpers
683684

684-
from contextlib import contextmanager
685-
686685

687686
@contextmanager
688687
def config_prefix(prefix):

0 commit comments

Comments
 (0)