Ticket #5534: issue_5534.patch

File issue_5534.patch, 1.4 KB (added by simenheg, 7 years ago)
  • mediagoblin/gmg_commands/batchaddmedia.py

    From 67d34c363ae3da8a56864d2ded611baff14d117b Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg@gmail.com>
    Date: Sun, 15 Oct 2017 13:44:17 +0200
    Subject: [PATCH] Remove dead code in batchaddmedia.py
    
    Remove an unused import and an unused local variable from
    batchaddmedia.py.
    ---
     mediagoblin/gmg_commands/batchaddmedia.py | 5 +----
     1 file changed, 1 insertion(+), 4 deletions(-)
    
    diff --git a/mediagoblin/gmg_commands/batchaddmedia.py b/mediagoblin/gmg_commands/batchaddmedia.py
    index 274d72bc..2e3d9a40 100644
    a b from six.moves.urllib.parse import urlparse  
    2828from mediagoblin.db.models import LocalUser
    2929from mediagoblin.gmg_commands import util as commands_util
    3030from mediagoblin.submit.lib import (
    31     submit_media, get_upload_file_limits,
    32     FileUploadLimit, UserUploadLimit, UserPastUploadLimit)
     31    submit_media, FileUploadLimit, UserUploadLimit, UserPastUploadLimit)
    3332from mediagoblin.tools.metadata import compact_and_validate
    3433from mediagoblin.tools.translate import pass_to_ugettext as _
    3534from jsonschema.exceptions import ValidationError
    def batchaddmedia(args):  
    7372                    username=args.username)))
    7473        return
    7574
    76     temp_files = []
    77 
    7875    if os.path.isfile(args.metadata_path):
    7976        metadata_path = args.metadata_path
    8077