From: olivier <> Date: Mon, 8 Mar 2010 17:46:54 +0000 (+0000) Subject: suppress debugging leftovers and console progress output: doesn't play well with... X-Git-Tag: 1.1~509 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=57f0817aa3c5bfd5c6d80e5d9f82f6971c9ad557;p=telemeta.git suppress debugging leftovers and console progress output: doesn't play well with WSGI --- diff --git a/telemeta/templatetags/telemeta_utils.py b/telemeta/templatetags/telemeta_utils.py index 51247061..9b98df5d 100644 --- a/telemeta/templatetags/telemeta_utils.py +++ b/telemeta/templatetags/telemeta_utils.py @@ -254,7 +254,6 @@ def render_flatpage(content): if i == 0: line += reverse(urlname) elif urlname[:1] != '/': - print '|%s|' % urlname line += reverse('telemeta-flatpage', args=[path + '/../' + urlname]) else: line += urlname diff --git a/telemeta/visualization/wav2png.py b/telemeta/visualization/wav2png.py index 8b0cce3d..0525e008 100755 --- a/telemeta/visualization/wav2png.py +++ b/telemeta/visualization/wav2png.py @@ -405,10 +405,6 @@ def create_wavform_png(input_filename, output_filename_w, image_width, image_hei for x in range(image_width): - if x % (image_width/10) == 0: - sys.stdout.write('.') - sys.stdout.flush() - seek_point = int(x * samples_per_pixel) next_seek_point = int((x + 1) * samples_per_pixel) @@ -418,8 +414,6 @@ def create_wavform_png(input_filename, output_filename_w, image_width, image_hei waveform.draw_peaks(x, peaks, spectral_centroid) waveform.save(output_filename_w) - - print " done" def create_spectrogram_png(input_filename, output_filename_s, image_width, image_height, fft_size, bg_color = None, color_scheme = None): @@ -432,10 +426,6 @@ def create_spectrogram_png(input_filename, output_filename_s, image_width, image for x in range(image_width): - if x % (image_width/10) == 0: - sys.stdout.write('.') - sys.stdout.flush() - seek_point = int(x * samples_per_pixel) next_seek_point = int((x + 1) * samples_per_pixel) (spectral_centroid, db_spectrum) = processor.spectral_centroid(seek_point) @@ -443,5 +433,4 @@ def create_spectrogram_png(input_filename, output_filename_s, image_width, image spectrogram.save(output_filename_s) - print " done"