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
|
28 | 28 | from mediagoblin.db.models import LocalUser |
29 | 29 | from mediagoblin.gmg_commands import util as commands_util |
30 | 30 | from mediagoblin.submit.lib import ( |
31 | | submit_media, get_upload_file_limits, |
32 | | FileUploadLimit, UserUploadLimit, UserPastUploadLimit) |
| 31 | submit_media, FileUploadLimit, UserUploadLimit, UserPastUploadLimit) |
33 | 32 | from mediagoblin.tools.metadata import compact_and_validate |
34 | 33 | from mediagoblin.tools.translate import pass_to_ugettext as _ |
35 | 34 | from jsonschema.exceptions import ValidationError |
… |
… |
def batchaddmedia(args):
|
73 | 72 | username=args.username))) |
74 | 73 | return |
75 | 74 | |
76 | | temp_files = [] |
77 | | |
78 | 75 | if os.path.isfile(args.metadata_path): |
79 | 76 | metadata_path = args.metadata_path |
80 | 77 | |