aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-05-07 15:21:58 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-05-07 15:21:58 -0500
commita4486286363cca8d0ef9d1026883b13e7f84d8e0 (patch)
tree9d92aec6f31da16f7898f712f52d8f71ca26176e
parent2a2c534e51f47cbf7c537c9b659648f23146a64b (diff)
downloadmediagoblin-a4486286363cca8d0ef9d1026883b13e7f84d8e0.tar.lz
mediagoblin-a4486286363cca8d0ef9d1026883b13e7f84d8e0.tar.xz
mediagoblin-a4486286363cca8d0ef9d1026883b13e7f84d8e0.zip
Removing unused variables
-rw-r--r--mediagoblin/gmg_commands/batchaddmedia.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mediagoblin/gmg_commands/batchaddmedia.py b/mediagoblin/gmg_commands/batchaddmedia.py
index cf362d83..07c0b3fc 100644
--- a/mediagoblin/gmg_commands/batchaddmedia.py
+++ b/mediagoblin/gmg_commands/batchaddmedia.py
@@ -26,7 +26,6 @@ from mediagoblin.submit.lib import (
FileUploadLimit, UserUploadLimit, UserPastUploadLimit)
from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
-from mediagoblin import mg_globals
from jsonschema import validate, FormatChecker, draft4_format_checker
from jsonschema.exceptions import ValidationError
from jsonschema.compat import str_types
@@ -99,14 +98,12 @@ zip files and directories"
metadata_file_path = os.path.join(dir_path, "metadata.csv")
# check for the location file, if it exists...
- location_filename = os.path.split(location_file_path)[-1]
abs_location_filename = os.path.abspath(location_file_path)
if not os.path.exists(abs_location_filename):
print "Can't find a file with filename '%s'" % location_file_path
return
# check for the metadata file, if it exists...
- metadata_filename = os.path.split(metadata_file_path)[-1]
abs_metadata_filename = os.path.abspath(metadata_file_path)
if not os.path.exists(abs_metadata_filename):
print "Can't find a file with filename '%s'" % metadata_file_path