From cfcda5f8a2beb58ab87b7a29e8a97aafdb6caeb7 Mon Sep 17 00:00:00 2001 From: Angelos Evripiotis Date: Sat, 29 Nov 2014 11:39:09 +0000 Subject: [PATCH] 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 --- pandas/core/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/config.py b/pandas/core/config.py index 60dc1d7d0341e..6768e0af0dfb6 100644 --- a/pandas/core/config.py +++ b/pandas/core/config.py @@ -51,6 +51,7 @@ import re from collections import namedtuple +from contextlib import contextmanager import warnings from pandas.compat import map, lmap, u import pandas.compat as compat @@ -681,8 +682,6 @@ def pp(name, ks): # # helpers -from contextlib import contextmanager - @contextmanager def config_prefix(prefix):