diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-07 11:03:09 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-07 08:42:52 -0500 |
commit | 0b5debac6873733685bc55fc1f88da6b5879a85f (patch) | |
tree | ef6fdc4c51ad1d86228707cfaccef6c6d7e0d072 /src/sbin/bcfg2-admin | |
parent | d52c925dedfabc0f8ba0b3a137fcf977749a055e (diff) | |
download | bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.tar.gz bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.tar.bz2 bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5895 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index 2d6ba4f5a..49c9452bc 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -1,5 +1,5 @@ #!/usr/bin/env python -'''bcfg2-admin is a script that helps to administrate a bcfg2 deployment''' +"""bcfg2-admin is a script that helps to administrate a Bcfg2 deployment.""" from optparse import OptionParser from StringIO import StringIO @@ -13,14 +13,14 @@ log = logging.getLogger('bcfg2-admin') import Bcfg2.Server.Admin def mode_import(modename): - '''Load Bcfg2.Server.Admin.<mode>''' + """Load Bcfg2.Server.Admin.<mode>""" modname = modename.capitalize() mod = getattr(__import__("Bcfg2.Server.Admin.%s" % (modname)).Server.Admin, modname) return getattr(mod, modname) def get_modes(): - """Get all available modes, except for the base mode""" + """Get all available modes, except for the base mode.""" return [x.lower() for x in Bcfg2.Server.Admin.__all__ if x != 'mode'] def create_description(): |