[pitivi] utils/ui: Don't mix unicode and ASCII strings in beautify_stream



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]