[pitivi] utils/ui: Don't mix unicode and ASCII strings in beautify_stream
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/ui: Don't mix unicode and ASCII strings in beautify_stream
- Date: Tue, 18 Sep 2012 03:21:20 +0000 (UTC)
commit 3bca883eb4251c9c3a3ca342ba652a0a977946cb
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Mon Sep 17 23:20:44 2012 -0400
utils/ui: Don't mix unicode and ASCII strings in beautify_stream
pitivi/utils/ui.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 88652dd..3017573 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -206,14 +206,14 @@ def beautify_stream(stream):
elif type(stream) == DiscovererVideoInfo:
par = stream.get_par_num() / stream.get_par_denom()
if not stream.is_image():
- templ = _(u"<b>Video:</b> %dÃ%d <i>pixels</i> at %.3f <i>fps</i>")
+ templ = _("<b>Video:</b> %dÃ%d <i>pixels</i> at %.3f <i>fps</i>")
try:
templ = templ % (par * stream.get_width(), stream.get_height(),
float(stream.get_framerate_num()) / stream.get_framerate_denom())
except ZeroDivisionError:
templ = templ % (par * stream.get_width(), stream.get_height(), 0)
else:
- templ = _(u"<b>Image:</b> %dÃ%d <i>pixels</i>")
+ templ = _("<b>Image:</b> %dÃ%d <i>pixels</i>")
templ = templ % (par * stream.get_width(), stream.get_height())
return templ
elif type(stream) == DiscovererStreamInfo:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]