Cleanup license, PEP8 goodness
This commit is contained in:
parent
7fffc1139a
commit
83544bda79
|
@ -1,29 +1,31 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
# Mugshot - Lightweight user configuration utility
|
||||||
# Copyright (C) 2013 Sean Davis <smd.seandavis@gmail.com>
|
# 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
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
# by the Free Software Foundation.
|
# under the terms of the GNU General Public License version 3, as published
|
||||||
#
|
# by the Free Software Foundation.
|
||||||
# This program is distributed in the hope that it will be useful, but
|
#
|
||||||
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
# This program is distributed in the hope that it will be useful, but
|
||||||
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
||||||
# PURPOSE. See the GNU General Public License for more details.
|
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
||||||
#
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
# You should have received a copy of the GNU General Public License along
|
#
|
||||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
# You should have received a copy of the GNU General Public License along
|
||||||
### END LICENSE
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import optparse
|
import optparse
|
||||||
|
|
||||||
from locale import gettext as _
|
from locale import gettext as _
|
||||||
|
|
||||||
from gi.repository import Gtk # pylint: disable=E0611
|
from gi.repository import Gtk # pylint: disable=E0611
|
||||||
|
|
||||||
from mugshot import MugshotWindow
|
from mugshot import MugshotWindow
|
||||||
|
|
||||||
from mugshot_lib import set_up_logging, get_version
|
from mugshot_lib import set_up_logging, get_version
|
||||||
|
|
||||||
|
|
||||||
def parse_options():
|
def parse_options():
|
||||||
"""Support for command line options"""
|
"""Support for command line options"""
|
||||||
parser = optparse.OptionParser(version="%%prog %s" % get_version())
|
parser = optparse.OptionParser(version="%%prog %s" % get_version())
|
||||||
|
@ -34,11 +36,12 @@ def parse_options():
|
||||||
|
|
||||||
set_up_logging(options)
|
set_up_logging(options)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
'constructor for your class instances'
|
'constructor for your class instances'
|
||||||
parse_options()
|
parse_options()
|
||||||
|
|
||||||
# Run the application.
|
# Run the application.
|
||||||
window = MugshotWindow.MugshotWindow()
|
window = MugshotWindow.MugshotWindow()
|
||||||
window.show()
|
window.show()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
# Mugshot - Lightweight user configuration utility
|
||||||
# Copyright (C) 2013 Sean Davis <smd.seandavis@gmail.com>
|
# 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
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
# by the Free Software Foundation.
|
# under the terms of the GNU General Public License version 3, as published
|
||||||
#
|
# by the Free Software Foundation.
|
||||||
# This program is distributed in the hope that it will be useful, but
|
#
|
||||||
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
# This program is distributed in the hope that it will be useful, but
|
||||||
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
# WITHOUT ANY WARRANTY; without even the implied warranties of
|
||||||
# PURPOSE. See the GNU General Public License for more details.
|
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
||||||
#
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
# You should have received a copy of the GNU General Public License along
|
#
|
||||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
# You should have received a copy of the GNU General Public License along
|
||||||
### END LICENSE
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
### DO NOT EDIT THIS FILE ###
|
|
||||||
|
|
||||||
'''facade - makes mugshot_lib package easy to refactor
|
'''facade - makes mugshot_lib package easy to refactor
|
||||||
|
|
||||||
while keeping its api constant'''
|
while keeping its api constant'''
|
||||||
|
#lint:disable
|
||||||
from . helpers import set_up_logging
|
from . helpers import set_up_logging
|
||||||
from . Window import Window
|
from . Window import Window
|
||||||
from . mugshotconfig import get_version
|
from . mugshotconfig import get_version
|
||||||
|
#lint:enable
|
||||||
|
|
Loading…
Reference in New Issue