aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/addmedia.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-06-07 13:51:42 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-06-07 13:51:42 +0300
commitd9aced73f16b37eb24b24778f8f448769f1a7665 (patch)
tree9bf7657a972284cf1705758a6b168113657053ec /mediagoblin/gmg_commands/addmedia.py
parent120fa4ae95329007c529b310f4e950146d44159f (diff)
downloadmediagoblin-d9aced73f16b37eb24b24778f8f448769f1a7665.tar.lz
mediagoblin-d9aced73f16b37eb24b24778f8f448769f1a7665.tar.xz
mediagoblin-d9aced73f16b37eb24b24778f8f448769f1a7665.zip
The file() builtin has been removed in Python 3. Use open() instead.
Diffstat (limited to 'mediagoblin/gmg_commands/addmedia.py')
-rw-r--r--mediagoblin/gmg_commands/addmedia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/addmedia.py b/mediagoblin/gmg_commands/addmedia.py
index 34add88b..b741b96f 100644
--- a/mediagoblin/gmg_commands/addmedia.py
+++ b/mediagoblin/gmg_commands/addmedia.py
@@ -95,7 +95,7 @@ def addmedia(args):
submit_media(
mg_app=app,
user=user,
- submitted_file=file(abs_filename, 'r'), filename=filename,
+ submitted_file=open(abs_filename, 'r'), filename=filename,
title=maybe_unicodeify(args.title),
description=maybe_unicodeify(args.description),
license=maybe_unicodeify(args.license),