pidgin/purple-plugin-pack

Some whitespace cleanups

2016-07-12, Gary Kramlich
32c8db241e1a
Parents 2e59c360d490
Children e7a8f00e8000
Some whitespace cleanups
--- a/plugin_pack.py Sat Feb 01 20:49:13 2014 -0500
+++ b/plugin_pack.py Tue Jul 12 09:53:13 2016 -0500
@@ -33,6 +33,7 @@
"""
from __future__ import print_function
+
import getopt
import glob
import os.path
@@ -123,7 +124,7 @@
# if the type is in list of types to load.
if types and not p.type in types:
continue
-
+
# now we check if the give plugins depends match the search
# depends
if depends:
@@ -310,7 +311,7 @@
print("{}".format(string.join(output, ',')))
commands['build_dirs'] = build_dirs
-
+
def list_plugins(self, args):
"""Displays a list similiar to 'dpkg -l' about the plugin pack"""
@@ -456,7 +457,7 @@
print(' Finch, and Purple. You will find a summary of each plugin below. For more')
print(' about an individual plugin, please see {}\n .'.format(WEBPAGE))
print(' Note: not all {} of these plugins are currently usable'.format(len(self.plugins)))
-
+
list = self.plugins.keys()
list.sort()
for key in list:
@@ -489,7 +490,7 @@
if len(line) + len(name) + 2 > 75:
print(line.rstrip(','))
line = ' '
-
+
line += ' {},'.format(name)
if len(line) > 1:
@@ -508,7 +509,7 @@
def stats(self, args):
"""Displays stats about the plugin pack"""
counts = {}
-
+
counts['total'] = len(self.plugins)
counts['default'] = len(self.default_plugins())
counts['incomplete'] = len(self.incomplete_plugins())
@@ -535,7 +536,7 @@
cmds = pp.commands.keys()
cmds.sort()
-
+
for cmd in cmds:
print(" {:<-20} {}".format(cmd, pp.commands[cmd].__doc__))