Fix more print statements. Refs #5331
This commit is contained in:
parent
9051f99391
commit
8e4b1fab36
@ -19,6 +19,8 @@
|
|||||||
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
|
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
|
||||||
# 2012, Joar Wandborg <first name at last name dot se>
|
# 2012, Joar Wandborg <first name at last name dot se>
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -29,7 +31,7 @@ import numpy
|
|||||||
try:
|
try:
|
||||||
import scikits.audiolab as audiolab
|
import scikits.audiolab as audiolab
|
||||||
except ImportError:
|
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):
|
class AudioProcessingException(Exception):
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from mediagoblin.storage import StorageInterface, clean_listy_filepath
|
from mediagoblin.storage import StorageInterface, clean_listy_filepath
|
||||||
@ -61,9 +63,9 @@ class MountStorage(StorageInterface):
|
|||||||
"""
|
"""
|
||||||
new_ent = clean_listy_filepath(dirpath)
|
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)
|
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), \
|
assert (len(rem_2) > 0) or (None not in table), \
|
||||||
"That path is already mounted"
|
"That path is already mounted"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user