summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
Diffstat (limited to 'SoftwareProperties')
-rw-r--r--SoftwareProperties/aptsources.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/SoftwareProperties/aptsources.py b/SoftwareProperties/aptsources.py
index 247879a3..133e9b3d 100644
--- a/SoftwareProperties/aptsources.py
+++ b/SoftwareProperties/aptsources.py
@@ -184,6 +184,10 @@ class SourceEntry:
if string.strip(self.line)[0] != "#":
self.line = "#" + self.line
+ def __str__(self):
+ """ debug helper """
+ return self.str().strip()
+
def str(self):
""" return the current line as string """
if self.invalid: