[pitivi: 4/14] Change a bunch of __repr__ to __str__.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 4/14] Change a bunch of __repr__ to __str__.
- Date: Wed, 24 Jun 2009 13:10:35 +0000 (UTC)
commit 9c4166be5b71a1318d015b20bbd170e5352bc9ff
Author: Alessandro Decina <alessandro d gmail com>
Date: Fri Jun 19 16:26:38 2009 +0200
Change a bunch of __repr__ to __str__.
pitivi/device.py | 2 +-
pitivi/pipeline.py | 4 ++--
pitivi/settings.py | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/device.py b/pitivi/device.py
index 8e6a6b5..c985d63 100644
--- a/pitivi/device.py
+++ b/pitivi/device.py
@@ -253,7 +253,7 @@ class AlsaSourceDeviceFactory(SourceDeviceFactory):
alsa.set_property("device", "hw:%d,%d" % (self._card, self._device))
return alsa
- def __repr__(self):
+ def __str__(self):
return "<%s: %s [hw:%s,%s]>" % (self.__class__.__name__,
self.displayname or self.name,
self._card, self._device)
diff --git a/pitivi/pipeline.py b/pitivi/pipeline.py
index b210936..fcdaa94 100644
--- a/pitivi/pipeline.py
+++ b/pitivi/pipeline.py
@@ -56,7 +56,7 @@ class FactoryEntry(object):
self.factory = factory
self.streams = {}
- def __repr__(self):
+ def __str__(self):
return "<FactoryEntry %s>" % self.factory
class StreamEntry(object):
@@ -81,7 +81,7 @@ class StreamEntry(object):
return entry
- def __repr__(self):
+ def __str__(self):
return "<StreamEntry %s '%s'>" % (self.factory_entry.factory, self.stream)
class Pipeline(Signallable, Loggable):
diff --git a/pitivi/settings.py b/pitivi/settings.py
index 5912093..1e39b4a 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -407,7 +407,7 @@ class StreamEncodeSettings(object):
self.output_stream = get_stream_for_caps(p.get_caps().copy())
self.output_stream.pad_name = p.name_template
- def __repr__(self):
+ def __str__(self):
return "<StreamEncodeSettings %s>" % self.encoder
class RenderSettings(object):
@@ -427,7 +427,7 @@ class RenderSettings(object):
self.muxer = muxer
self.muxersettings = muxersettings
- def __repr__(self):
+ def __str__(self):
return "<RenderSettings %s [%d streams]>" % (self.muxer, len(self.settings))
class ExportSettings(Signallable, Loggable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]