diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-06-25 15:57:47 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-06-25 16:05:39 +0300 |
commit | 8e4b1fab36693f511d3e3d27673fc60e3a9287fa (patch) | |
tree | f97a49d0fb210db19d3293cd747bbff5e6e112fd | |
parent | 9051f99391cff02829be83e3ad0a004274cc3a4c (diff) | |
download | mediagoblin-8e4b1fab36693f511d3e3d27673fc60e3a9287fa.tar.lz mediagoblin-8e4b1fab36693f511d3e3d27673fc60e3a9287fa.tar.xz mediagoblin-8e4b1fab36693f511d3e3d27673fc60e3a9287fa.zip |
Fix more print statements. Refs #5331
-rw-r--r-- | mediagoblin/media_types/audio/spectrogram.py | 4 | ||||
-rw-r--r-- | mediagoblin/storage/mountstorage.py | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/mediagoblin/media_types/audio/spectrogram.py b/mediagoblin/media_types/audio/spectrogram.py index dd4d0299..433bb300 100644 --- a/mediagoblin/media_types/audio/spectrogram.py +++ b/mediagoblin/media_types/audio/spectrogram.py @@ -19,6 +19,8 @@ # Bram de Jong <bram.dejong at domain.com where domain in gmail> # 2012, Joar Wandborg <first name at last name dot se> +from __future__ import print_function + try: from PIL import Image except ImportError: @@ -29,7 +31,7 @@ import numpy try: import scikits.audiolab as audiolab except ImportError: - print "WARNING: audiolab is not installed so wav2png will not work" + print("WARNING: audiolab is not installed so wav2png will not work") class AudioProcessingException(Exception): diff --git a/mediagoblin/storage/mountstorage.py b/mediagoblin/storage/mountstorage.py index 4125a88d..a829db31 100644 --- a/mediagoblin/storage/mountstorage.py +++ b/mediagoblin/storage/mountstorage.py @@ -14,6 +14,8 @@ # 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 @@ -61,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" |