Fix space. Return is not used.

This commit is contained in:
Alberto Planas 2014-05-20 11:45:46 +02:00
parent 80f804c246
commit 7e1bdfff70

View File

@ -26,6 +26,7 @@ from osclib.cleanup_rings import CleanupRings
from osclib.list_command import ListCommand from osclib.list_command import ListCommand
from osclib.freeze_command import FreezeCommand from osclib.freeze_command import FreezeCommand
from osclib.check_command import CheckCommand from osclib.check_command import CheckCommand
from osclib.comments import CommentAPI
OSC_STAGING_VERSION = '0.0.1' OSC_STAGING_VERSION = '0.0.1'
@ -108,15 +109,15 @@ def do_staging(self, subcmd, opts, *args):
CheckCommand(api).perform(project) CheckCommand(api).perform(project)
elif cmd == 'freeze': elif cmd == 'freeze':
for prj in args[1:]: for prj in args[1:]:
FreezeCommand(api).perform(api. prj_from_letter(prj)) FreezeCommand(api).perform(api.prj_from_letter(prj))
elif cmd == 'accept': elif cmd == 'accept':
return AcceptCommand(api).perform(api. prj_from_letter(args[1])) AcceptCommand(api).perform(api.prj_from_letter(args[1]))
elif cmd == 'unselect': elif cmd == 'unselect':
return UnselectCommand(api).perform(args[1:]) UnselectCommand(api).perform(args[1:])
elif cmd == 'select': elif cmd == 'select':
tprj = api.prj_from_letter(args[1]) tprj = api.prj_from_letter(args[1])
return SelectCommand(api).perform(tprj, args[2:], opts.move, opts.from_) SelectCommand(api).perform(tprj, args[2:], opts.move, opts.from_)
elif cmd == 'cleanup_rings': elif cmd == 'cleanup_rings':
return CleanupRings(opts.apiurl).perform() CleanupRings(opts.apiurl).perform()
elif cmd == 'list': elif cmd == 'list':
return ListCommand(api).perform() ListCommand(api).perform()