@@ -58,11 +58,14 @@ def parse_commandline():
5858 if len (args ) not in [1 , 2 ]:
5959 parser .error ('wrong number of arguments' )
6060 if (len (args ) == 1 and args [0 ] in ['add' , 'remove' ]):
61- parser .error ('%r needs a collaborator name as second parameter\n ' % args [0 ])
61+ parser .error ('%r needs a collaborator name as second parameter\n '
62+ % args [0 ])
6263 elif (len (args ) == 1 and args [0 ] != 'list' ):
63- parser .error ('unknown command %r. Try "list", "add" or "remove"\n ' % args [0 ])
64+ parser .error ('unknown command %r. Try "list", "add" or "remove"\n '
65+ % args [0 ])
6466 if (len (args ) == 2 and args [0 ] not in ['add' , 'remove' ]):
65- parser .error ('unknown command %r. Try "list", "add" or "remove"\n ' % args [0 ])
67+ parser .error ('unknown command %r. Try "list", "add" or "remove"\n '
68+ % args [0 ])
6669 if not options .login :
6770 parser .error ('you must provide --login information\n ' )
6871
@@ -88,12 +91,15 @@ def main():
8891 datefmt = "%Y-%m-%dT%H:%M:%S" )
8992 if len (args ) == 1 :
9093 for repos in github .repos .list (options .account ):
91- fullreposname = github .project_for_user_repo (options .account , repos .name )
92- print_ ("%s: %s" % (repos .name , ' ' .join (github .repos .list_collaborators (fullreposname ))))
94+ fullreposname = github .project_for_user_repo (options .account ,
95+ repos .name )
96+ collabs = github .repos .list_collaborators (fullreposname )
97+ print_ ("%s: %s" % (repos .name , ' ' .join (collabs )))
9398 elif len (args ) == 2 :
9499 command , collaborator = args
95100 for repos in github .repos .list (options .account ):
96- fullreposname = github .project_for_user_repo (options .account , repos .name )
101+ fullreposname = github .project_for_user_repo (options .account ,
102+ repos .name )
97103 if collaborator in github .repos .list_collaborators (fullreposname ):
98104 if command == 'remove' :
99105 github .repos .remove_collaborator (repos .name , collaborator )
0 commit comments