diff options
| author | Giampaolo Rodola' <g.rodola@gmail.com> | 2011-10-05 18:45:49 +0000 |
|---|---|---|
| committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2011-10-05 18:45:49 +0000 |
| commit | b7c4dbeb1bd430a232a1044e627df33636c128de (patch) | |
| tree | 1a297f93de5d71ef638a3ab7ee1c85185f9368ac /psutil | |
| parent | d98cbade6370eca68746068b3ec8d8f02cc58721 (diff) | |
| download | psutil-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.
Diffstat (limited to 'psutil')
32 files changed, 140 insertions, 3 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): |
