Pep8 and pyflakes fixes to sugar-activity

This commit is contained in:
Gonzalo Odiard 2014-05-19 17:52:53 -03:00 committed by Martin Abente Lahaye
parent 987068959f
commit 43a4611d75

View File

@ -33,9 +33,7 @@ from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True) DBusGMainLoop(set_as_default=True)
from sugar3.activity import activityhandle from sugar3.activity import activityhandle
from sugar3.activity import i18n
from sugar3 import config from sugar3 import config
import sugar3
from sugar3.bundle.activitybundle import ActivityBundle from sugar3.bundle.activitybundle import ActivityBundle
from sugar3 import logger from sugar3 import logger
@ -69,6 +67,7 @@ class SingleProcess(dbus.service.Object):
handle = activityhandle.create_from_dict(handle_dict) handle = activityhandle.create_from_dict(handle_dict)
create_activity_instance(self.constructor, handle) create_activity_instance(self.constructor, handle)
def main(): def main():
parser = OptionParser() parser = OptionParser()
parser.add_option('-b', '--bundle-id', dest='bundle_id', parser.add_option('-b', '--bundle-id', dest='bundle_id',