Cleanup license, PEP8 goodness

This commit is contained in:
Sean Davis 2014-03-02 10:50:40 -05:00
parent 7fffc1139a
commit 83544bda79
2 changed files with 36 additions and 33 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/python3
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2013 Sean Davis <smd.seandavis@gmail.com>
# Mugshot - Lightweight user configuration utility
# Copyright (C) 2013-2014 Sean Davis <smd.seandavis@gmail.com>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
@ -12,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
import optparse
@ -24,6 +25,7 @@ from mugshot import MugshotWindow
from mugshot_lib import set_up_logging, get_version
def parse_options():
"""Support for command line options"""
parser = optparse.OptionParser(version="%%prog %s" % get_version())
@ -34,6 +36,7 @@ def parse_options():
set_up_logging(options)
def main():
'constructor for your class instances'
parse_options()

View File

@ -1,6 +1,8 @@
#!/usr/bin/python3
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2013 Sean Davis <smd.seandavis@gmail.com>
# Mugshot - Lightweight user configuration utility
# Copyright (C) 2013-2014 Sean Davis <smd.seandavis@gmail.com>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
@ -12,14 +14,12 @@
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
### DO NOT EDIT THIS FILE ###
'''facade - makes mugshot_lib package easy to refactor
while keeping its api constant'''
#lint:disable
from . helpers import set_up_logging
from . Window import Window
from . mugshotconfig import get_version
#lint:enable