diff options
author | Alessio Sergi <al3hex@gmail.com> | 2014-06-13 19:00:00 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2014-06-13 19:02:21 +0200 |
commit | b5cac27e99b8f899e39ba9b0826cbcf35eda3bc3 (patch) | |
tree | 6fa0c925fa0f11ec2fd306c023df49069d0e20ee /glances/plugins/glances_load.py | |
parent | 51611928b9c99a75259bd440d450205a1614264e (diff) |
PEP 257
One-line docstring should not occupy 3 lines
Expected 1 blank line *before* class docstring
First line should end with '.'
Blank line missing between one-line summary and description
No blank lines allowed *after* method docstring
Use r""" if any backslashes in a docstring
Diffstat (limited to 'glances/plugins/glances_load.py')
-rw-r--r-- | glances/plugins/glances_load.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/glances/plugins/glances_load.py b/glances/plugins/glances_load.py index 8f7f52bd..4b6a7a14 100644 --- a/glances/plugins/glances_load.py +++ b/glances/plugins/glances_load.py @@ -16,9 +16,8 @@ # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -""" -Glances load plugin -""" + +"""Load plugin.""" # Import system libs import os @@ -37,13 +36,14 @@ snmp_oid = {'min1': '1.3.6.1.4.1.2021.10.1.3.1', class Plugin(GlancesPlugin): - """ - Glances's Load Plugin + + """Glances' load plugin. stats is a dict """ def __init__(self, args=None): + """Init the plugin.""" GlancesPlugin.__init__(self, args=args) # We want to display the stat in the curse interface @@ -59,16 +59,11 @@ class Plugin(GlancesPlugin): self.reset() def reset(self): - """ - Reset/init the stats - """ + """Reset/init the stats.""" self.stats = {} def update(self): - """ - Update load stats - """ - + """Update load stats.""" # Reset stats self.reset() @@ -107,10 +102,7 @@ class Plugin(GlancesPlugin): return self.stats def msg_curse(self, args=None): - """ - Return the dict to display in the curse interface - """ - + """Return the dict to display in the curse interface.""" # Init the return message ret = [] |