aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage/mountstorage.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/storage/mountstorage.py')
-rw-r--r--mediagoblin/storage/mountstorage.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/mediagoblin/storage/mountstorage.py b/mediagoblin/storage/mountstorage.py
index dffc619b..a829db31 100644
--- a/mediagoblin/storage/mountstorage.py
+++ b/mediagoblin/storage/mountstorage.py
@@ -14,6 +14,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import print_function
+
+import six
+
from mediagoblin.storage import StorageInterface, clean_listy_filepath
@@ -59,9 +63,9 @@ class MountStorage(StorageInterface):
"""
new_ent = clean_listy_filepath(dirpath)
- print "Mounting:", repr(new_ent)
+ print("Mounting:", repr(new_ent))
already, rem_1, table, rem_2 = self._resolve_to_backend(new_ent, True)
- print "===", repr(already), repr(rem_1), repr(rem_2), len(table)
+ print("===", repr(already), repr(rem_1), repr(rem_2), len(table))
assert (len(rem_2) > 0) or (None not in table), \
"That path is already mounted"
@@ -120,7 +124,7 @@ class MountStorage(StorageInterface):
v = table.get(None)
if v:
res.append(" " * len(indent) + repr(indent) + ": " + repr(v))
- for k, v in table.iteritems():
+ for k, v in six.iteritems(table):
if k == None:
continue
res.append(" " * len(indent) + repr(k) + ":")