[pitivi] python3: split only works for unicode objects



commit 38dec51bf65edecdef3880dad4f236e8e38392a5
Author: Lubosz Sarnecki <lubosz gmail com>
Date:   Tue May 6 14:10:56 2014 +0200

    python3: split only works for unicode objects
    
    + remove some print statements
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729528

 pitivi/application.py |    2 +-
 pitivi/undo/effect.py |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index a09b4fd..21375d9 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -201,7 +201,7 @@ class Pitivi(Gtk.Application, Loggable):
     def _versionInfoReceivedCb(self, giofile, result, user_data):
         try:
             raw = giofile.load_contents_finish(result)[1]
-            raw = raw.split("\n")
+            raw = raw.decode().split("\n")
             # Split line at '=' if the line is not empty or a comment line
             data = [element.split("=") for element in raw
                     if element and not element.startswith("#")]
diff --git a/pitivi/undo/effect.py b/pitivi/undo/effect.py
index efe5663..613f2b7 100644
--- a/pitivi/undo/effect.py
+++ b/pitivi/undo/effect.py
@@ -66,7 +66,6 @@ class EffectGstElementPropertyChangeTracker:
         for prop in effect.list_children_properties():
             properties[prop.name] = effect.get_child_property(prop.name)[1]
 
-        print ("Connected to %s" % effect)
         self._tracked_effects[effect] = properties
 
     def getPropChangedFromEffect(self, effect):
@@ -77,7 +76,6 @@ class EffectGstElementPropertyChangeTracker:
         new_value = effect.get_child_property(pspec.name)[1]
         action = EffectPropertyChanged(effect, pspec.name, old_value, new_value)
         self._tracked_effects[effect][pspec.name] = new_value
-        print ("_propertyChangedCb Action log: %s", self.action_log)
         self.action_log.push(action)
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]