Pep 8
authorRodney Ewing <ewing.rj@gmail.com>
Thu, 1 Aug 2013 20:53:20 +0000 (13:53 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 22:30:13 +0000 (15:30 -0700)
mediagoblin/gmg_commands/reprocess.py

index 2158d36ec6396cf760e96e7cdb18bfbfc8a6133d..9390861f5f99c6bf7f9402605d343e8070840be0 100644 (file)
@@ -44,7 +44,7 @@ def reprocess_parser_setup(subparser):
 def _set_media_type(args):
     if len(args[0].media_id) == 1:
         media_type = MediaEntry.query.filter_by(id=args[0].media_id[0])\
-                .first().media_type.split('.')[-1]
+            .first().media_type.split('.')[-1]
 
         if not args[0].type:
             args[0].type = media_type
@@ -55,7 +55,7 @@ def _set_media_type(args):
         media_types = []
 
         for id in args[0].media_id:
-            media_types.append(MediaEntry.query.filter_by(id=id).first()\
+            media_types.append(MediaEntry.query.filter_by(id=id).first()
                                .media_type.split('.')[-1])
         for type in media_types:
             if media_types[0] != type:
@@ -77,8 +77,8 @@ def _reprocess_all(args):
     if not args[0].type:
         if args[0].state == 'failed':
             if args[0].available:
-                print _('\n Available reprocess actions for all failed' \
-                      ' media_entries: \n \t --initial_processing')
+                print _('\n Available reprocess actions for all failed'
+                        ' media_entries: \n \t --initial_processing')
                 return
             else:
                 #TODO reprocess all failed entries