CLN: make submodules of pandas.util private by jreback · Pull Request #16223 · pandas-dev/pandas (original) (raw)

Will have to update the test too.

On Thu, May 4, 2017 at 7:00 AM, Jeff Reback ***@***.***> wrote: ***@***.**** commented on this pull request. ------------------------------ In pandas/tools/hashing.py <#16223 (comment)>: > @@ -0,0 +1,18 @@ +import warnings +import sys + +m = sys.modules['pandas.tools.hashing'] +for t in ['hash_pandas_object', 'hash_array']: + + def outer(t=t): + + def wrapper(*args, **kwargs): + from pandas import util + warnings.warn("pandas.tools.hashing is deprecated and will be " + "removed in a future version, import " + "from pandas.util", + FutureWarning, stacklevel=3) hmm, sure could do that. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#16223 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQHIhpO2eai0OmpXj4EK5w3RJSmMOecks5r2b35gaJpZM4NQKIU> .