Skip to content

Commit

Permalink
COMPAT: don't force clipboard routines to be imported in main pandas …
Browse files Browse the repository at this point in the history
…started

closes pandas-dev#16288
  • Loading branch information
jreback committed May 9, 2017
1 parent b603947 commit 627095a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.20.2.txt
Expand Up @@ -48,7 +48,7 @@ Indexing
I/O
^^^


- Bug that would force importing of the clipboard routines unecessarily, potentially causing an import error on startup (:issue:`16288`)


Plotting
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/generic.py
Expand Up @@ -1382,8 +1382,8 @@ def to_clipboard(self, excel=None, sep=None, **kwargs):
- Windows: none
- OS X: none
"""
from pandas.io.clipboard import clipboard
clipboard.to_clipboard(self, excel=excel, sep=sep, **kwargs)
from pandas.io import clipboards
clipboards.to_clipboard(self, excel=excel, sep=sep, **kwargs)

def to_xarray(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/api.py
Expand Up @@ -5,7 +5,7 @@
# flake8: noqa

from pandas.io.parsers import read_csv, read_table, read_fwf
from pandas.io.clipboard.clipboard import read_clipboard
from pandas.io.clipboards import read_clipboard
from pandas.io.excel import ExcelFile, ExcelWriter, read_excel
from pandas.io.pytables import HDFStore, get_store, read_hdf
from pandas.io.json import read_json
Expand Down
File renamed without changes.

0 comments on commit 627095a

Please sign in to comment.