summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2011-10-05 18:45:49 +0000
committerGiampaolo Rodola' <g.rodola@gmail.com>2011-10-05 18:45:49 +0000
commitb7c4dbeb1bd430a232a1044e627df33636c128de (patch)
tree1a297f93de5d71ef638a3ab7ee1c85185f9368ac
parentd98cbade6370eca68746068b3ec8d8f02cc58721 (diff)
downloadpsutil-b7c4dbeb1bd430a232a1044e627df33636c128de.tar.gz
Fix #212
Add license header in all source files to pass google chromium license checkers. Also removed Dave Daeschler from contributors and added some missing docstrings.
-rw-r--r--psutil/__init__.py6
-rw-r--r--psutil/_common.py3
-rw-r--r--psutil/_compat.py3
-rw-r--r--psutil/_psbsd.py5
-rwxr-xr-xpsutil/_pslinux.py5
-rw-r--r--psutil/_psmswindows.py5
-rw-r--r--psutil/_psosx.py5
-rw-r--r--psutil/_psposix.py3
-rw-r--r--psutil/_psutil_bsd.c4
-rw-r--r--psutil/_psutil_bsd.h4
-rw-r--r--psutil/_psutil_common.c4
-rw-r--r--psutil/_psutil_common.h4
-rw-r--r--psutil/_psutil_linux.c4
-rw-r--r--psutil/_psutil_linux.h4
-rw-r--r--psutil/_psutil_mswindows.c4
-rw-r--r--psutil/_psutil_mswindows.h5
-rw-r--r--psutil/_psutil_osx.c4
-rw-r--r--psutil/_psutil_osx.h4
-rw-r--r--psutil/_psutil_posix.c4
-rw-r--r--psutil/_psutil_posix.h4
-rw-r--r--psutil/arch/bsd/process_info.c4
-rw-r--r--psutil/arch/bsd/process_info.h4
-rw-r--r--psutil/arch/mswindows/ntextapi.h5
-rw-r--r--psutil/arch/mswindows/process_handles.c9
-rw-r--r--psutil/arch/mswindows/process_handles.h8
-rw-r--r--psutil/arch/mswindows/process_info.c4
-rw-r--r--psutil/arch/mswindows/process_info.h4
-rw-r--r--psutil/arch/mswindows/security.c4
-rw-r--r--psutil/arch/mswindows/security.h4
-rw-r--r--psutil/arch/osx/process_info.c4
-rw-r--r--psutil/arch/osx/process_info.h4
-rw-r--r--psutil/error.py5
-rw-r--r--setup.py8
-rw-r--r--test/_bsd.py5
-rw-r--r--test/_linux.py5
-rw-r--r--test/_osx.py5
-rwxr-xr-xtest/_posix.py5
-rw-r--r--test/_windows.py4
-rw-r--r--test/test_memory_leaks.py11
-rw-r--r--test/test_psutil.py7
40 files changed, 181 insertions, 12 deletions
diff --git a/psutil/__init__.py b/psutil/__init__.py
index ea04cf29..9b3a25f6 100644
--- a/psutil/__init__.py
+++ b/psutil/__init__.py
@@ -2,9 +2,13 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""psutil is a module providing convenience functions for managing
-processes in a portable way by using Python.
+processes and gather system information in a portable way by using
+Python.
"""
__version__ = "0.3.1"
diff --git a/psutil/_common.py b/psutil/_common.py
index 815a0396..b9029448 100644
--- a/psutil/_common.py
+++ b/psutil/_common.py
@@ -2,6 +2,9 @@
#
#$Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Common objects shared by all _ps* modules."""
diff --git a/psutil/_compat.py b/psutil/_compat.py
index 1c746aee..cfea64f5 100644
--- a/psutil/_compat.py
+++ b/psutil/_compat.py
@@ -2,6 +2,9 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Module which provides compatibility with older Python versions."""
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py
index 99fd96cc..5b6bcf4c 100644
--- a/psutil/_psbsd.py
+++ b/psutil/_psbsd.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""FreeBSD platform implementation."""
import errno
import os
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 86d1ceec..bb50ff17 100755
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Linux platform implementation."""
import os
import errno
diff --git a/psutil/_psmswindows.py b/psutil/_psmswindows.py
index f8298104..aaadc2d4 100644
--- a/psutil/_psmswindows.py
+++ b/psutil/_psmswindows.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Windows platform implementation."""
import errno
import os
diff --git a/psutil/_psosx.py b/psutil/_psosx.py
index f98788a2..d642cd00 100644
--- a/psutil/_psosx.py
+++ b/psutil/_psosx.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""OSX platform implementation."""
import errno
import os
diff --git a/psutil/_psposix.py b/psutil/_psposix.py
index 32068cfe..c71a7225 100644
--- a/psutil/_psposix.py
+++ b/psutil/_psposix.py
@@ -2,6 +2,9 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Routines common to all posix systems."""
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c
index 355285e3..7385fee8 100644
--- a/psutil/_psutil_bsd.c
+++ b/psutil/_psutil_bsd.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* FreeBSD platform-specific module methods for _psutil_bsd
*/
diff --git a/psutil/_psutil_bsd.h b/psutil/_psutil_bsd.h
index b11a1496..23d22c0a 100644
--- a/psutil/_psutil_bsd.h
+++ b/psutil/_psutil_bsd.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* BSD platform-specific module methods for _psutil_bsd
*/
diff --git a/psutil/_psutil_common.c b/psutil/_psutil_common.c
index b15a9ab2..4c07fa6b 100644
--- a/psutil/_psutil_common.c
+++ b/psutil/_psutil_common.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Routines common to all platforms.
*/
diff --git a/psutil/_psutil_common.h b/psutil/_psutil_common.h
index 8066ae1e..4be88d79 100644
--- a/psutil/_psutil_common.h
+++ b/psutil/_psutil_common.h
@@ -1,5 +1,9 @@
/*
* $Id$
+ *
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*/
#include <Python.h>
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c
index 9140f4a4..f02f15e1 100644
--- a/psutil/_psutil_linux.c
+++ b/psutil/_psutil_linux.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Linux-specific functions.
*/
diff --git a/psutil/_psutil_linux.h b/psutil/_psutil_linux.h
index 6a2db353..57ed5a59 100644
--- a/psutil/_psutil_linux.h
+++ b/psutil/_psutil_linux.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* LINUX specific module methods for _psutil_linux
*/
diff --git a/psutil/_psutil_mswindows.c b/psutil/_psutil_mswindows.c
index 4ed92f6c..877ea09e 100644
--- a/psutil/_psutil_mswindows.c
+++ b/psutil/_psutil_mswindows.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Windows platform-specific module methods for _psutil_mswindows
*/
diff --git a/psutil/_psutil_mswindows.h b/psutil/_psutil_mswindows.h
index ac995bf0..4ded1030 100644
--- a/psutil/_psutil_mswindows.h
+++ b/psutil/_psutil_mswindows.h
@@ -1,8 +1,11 @@
/*
* $Id$
*
- * Windows platform-specific module methods for _psutil_mswindows
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*
+ * Windows platform-specific module methods for _psutil_mswindows
*/
#include <Python.h>
diff --git a/psutil/_psutil_osx.c b/psutil/_psutil_osx.c
index 97e85aa8..e84d9938 100644
--- a/psutil/_psutil_osx.c
+++ b/psutil/_psutil_osx.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* OS X platform-specific module methods for _psutil_osx
*/
diff --git a/psutil/_psutil_osx.h b/psutil/_psutil_osx.h
index 659afd1c..1e51f75e 100644
--- a/psutil/_psutil_osx.h
+++ b/psutil/_psutil_osx.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* OS X platform-specific module methods for _psutil_osx
*/
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c
index 8ed9a516..3c23a85d 100644
--- a/psutil/_psutil_posix.c
+++ b/psutil/_psutil_posix.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Functions specific to all POSIX compliant platforms.
*/
diff --git a/psutil/_psutil_posix.h b/psutil/_psutil_posix.h
index 0a5a11e3..205d4ab2 100644
--- a/psutil/_psutil_posix.h
+++ b/psutil/_psutil_posix.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* POSIX specific module methods for _psutil_posix
*/
diff --git a/psutil/arch/bsd/process_info.c b/psutil/arch/bsd/process_info.c
index e1b7e267..d371cc57 100644
--- a/psutil/arch/bsd/process_info.c
+++ b/psutil/arch/bsd/process_info.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by _psutil_bsd
* module methods.
*/
diff --git a/psutil/arch/bsd/process_info.h b/psutil/arch/bsd/process_info.h
index be504daf..41535a21 100644
--- a/psutil/arch/bsd/process_info.h
+++ b/psutil/arch/bsd/process_info.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by _psutil_bsd
* module methods.
*/
diff --git a/psutil/arch/mswindows/ntextapi.h b/psutil/arch/mswindows/ntextapi.h
index 3879e073..56e2a313 100644
--- a/psutil/arch/mswindows/ntextapi.h
+++ b/psutil/arch/mswindows/ntextapi.h
@@ -1,5 +1,10 @@
/*
* $Id$
+ *
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
*/
typedef enum _KTHREAD_STATE
diff --git a/psutil/arch/mswindows/process_handles.c b/psutil/arch/mswindows/process_handles.c
index fd272f2a..9225b7a9 100644
--- a/psutil/arch/mswindows/process_handles.c
+++ b/psutil/arch/mswindows/process_handles.c
@@ -1,3 +1,12 @@
+/*
+ * $Id$
+ *
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ */
+
#ifndef UNICODE
#define UNICODE
#endif
diff --git a/psutil/arch/mswindows/process_handles.h b/psutil/arch/mswindows/process_handles.h
index bd9d39b8..3d007b8c 100644
--- a/psutil/arch/mswindows/process_handles.h
+++ b/psutil/arch/mswindows/process_handles.h
@@ -1,3 +1,11 @@
+/*
+ * $Id: process_info.h 1060 2011-07-02 18:05:26Z g.rodola $
+ *
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
#include <Python.h>
#include <windows.h>
diff --git a/psutil/arch/mswindows/process_info.c b/psutil/arch/mswindows/process_info.c
index ba1b2678..e0a18957 100644
--- a/psutil/arch/mswindows/process_info.c
+++ b/psutil/arch/mswindows/process_info.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by
* _psutil_mswindows module methods.
*/
diff --git a/psutil/arch/mswindows/process_info.h b/psutil/arch/mswindows/process_info.h
index ee8f72d6..8992e039 100644
--- a/psutil/arch/mswindows/process_info.h
+++ b/psutil/arch/mswindows/process_info.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by _psutil_mswindows
* module methods.
*/
diff --git a/psutil/arch/mswindows/security.c b/psutil/arch/mswindows/security.c
index a6c69917..88de68e3 100644
--- a/psutil/arch/mswindows/security.c
+++ b/psutil/arch/mswindows/security.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Security related functions for Windows platform (Set privileges such as
* SeDebug), as well as security helper functions.
*/
diff --git a/psutil/arch/mswindows/security.h b/psutil/arch/mswindows/security.h
index e40c42b8..12c6e9d1 100644
--- a/psutil/arch/mswindows/security.h
+++ b/psutil/arch/mswindows/security.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Security related functions for Windows platform (Set privileges such as
* SeDebug), as well as security helper functions.
*/
diff --git a/psutil/arch/osx/process_info.c b/psutil/arch/osx/process_info.c
index 16b35d13..ff7404d4 100644
--- a/psutil/arch/osx/process_info.c
+++ b/psutil/arch/osx/process_info.c
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by _psutil_osx
* module methods.
*/
diff --git a/psutil/arch/osx/process_info.h b/psutil/arch/osx/process_info.h
index 7827e85c..167ffa80 100644
--- a/psutil/arch/osx/process_info.h
+++ b/psutil/arch/osx/process_info.h
@@ -1,6 +1,10 @@
/*
* $Id$
*
+ * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
* Helper functions related to fetching process information. Used by _psutil_osx
* module methods.
*/
diff --git a/psutil/error.py b/psutil/error.py
index 773d8596..13281b2f 100644
--- a/psutil/error.py
+++ b/psutil/error.py
@@ -2,8 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
-"""psutil exception classes"""
+"""psutil exception classes; do not import this directly"""
class Error(Exception):
diff --git a/setup.py b/setup.py
index 0c77160d..9d4c941b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,10 @@
#!/usr/bin/env python
#
# $Id$
+#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
import sys
import os
@@ -83,8 +87,8 @@ system and processes in a portable way by using Python.""",
keywords=['ps', 'top', 'kill', 'free', 'lsof', 'netstat', 'nice',
'tty', 'ionice', 'uptime', 'taskmgr', 'process', 'df',
'monitoring'],
- author='Giampaolo Rodola, Dave Daeschler, Jay Loden',
- author_email='psutil-dev@googlegroups.com',
+ author='Giampaolo Rodola, Jay Loden',
+ author_email='psutil@googlegroups.com',
url='http://code.google.com/p/psutil/',
platforms='Platform Independent',
license='License :: OSI Approved :: BSD License',
diff --git a/test/_bsd.py b/test/_bsd.py
index a89c4236..3fb5f8c7 100644
--- a/test/_bsd.py
+++ b/test/_bsd.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""BSD specific tests. These are implicitly run by test_psutil.py."""
import unittest
import subprocess
diff --git a/test/_linux.py b/test/_linux.py
index d1fb98be..72bdec12 100644
--- a/test/_linux.py
+++ b/test/_linux.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Linux specific tests. These are implicitly run by test_psutil.py."""
import unittest
import subprocess
diff --git a/test/_osx.py b/test/_osx.py
index e5085728..385ea7f7 100644
--- a/test/_osx.py
+++ b/test/_osx.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""OSX specific tests. These are implicitly run by test_psutil.py."""
import unittest
import subprocess
diff --git a/test/_posix.py b/test/_posix.py
index 49366112..e8251eae 100755
--- a/test/_posix.py
+++ b/test/_posix.py
@@ -2,6 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""POSIX specific tests. These are implicitly run by test_psutil.py."""
import unittest
import subprocess
diff --git a/test/_windows.py b/test/_windows.py
index a5655652..9522f7f5 100644
--- a/test/_windows.py
+++ b/test/_windows.py
@@ -2,7 +2,11 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""Windows specific tests. These are implicitly run by test_psutil.py."""
import os
import unittest
diff --git a/test/test_memory_leaks.py b/test/test_memory_leaks.py
index 586e36d4..72ec91b6 100644
--- a/test/test_memory_leaks.py
+++ b/test/test_memory_leaks.py
@@ -2,15 +2,16 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""
-Note: this is targeted for python 2.x.
-To run it under python 3.x you need to use 2to3 tool first:
-
-$ 2to3 -w test/test_memory_leaks.py
+A test script which attempts to detect memory leaks by calling C
+functions many times and compare process memory usage before and
+after the calls. It might produce false positives.
"""
-
import os
import gc
import unittest
diff --git a/test/test_psutil.py b/test/test_psutil.py
index 628b8e90..505add10 100644
--- a/test/test_psutil.py
+++ b/test/test_psutil.py
@@ -2,12 +2,15 @@
#
# $Id$
#
+# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""
psutil test suite.
-Note: this is targeted for both python 2.x and 3.x.
-There's no need to use 2to3 first.
+Note: this is targeted for both python 2.x and 3.x so there's no need
+to use 2to3 tool first.
"""
import unittest