Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 #!/usr/bin/env python
3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 """This module is deprecated as exceptions are defined in _error.py
8 and are supposed to be accessed from 'psutil' namespace as in:
9 - psutil.NoSuchProcess
10 - psutil.AccessDenied
11 - psutil.TimeoutExpired
12 """
14 import warnings
15 from psutil._error import *
17 warnings.warn("psutil.error module is deprecated and scheduled for removal; " \
18 "use psutil namespace instead", category=DeprecationWarning,
19 stacklevel=2)