From c2ef848129e03d5486ff3d084d903a7ef7ea658b Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sat, 5 Sep 2009 19:12:56 +0200 Subject: remove some extra print statements that only cause problems while some of them are printed only in the case of error, mod_wsgi doesn't allow sys.stdout access and therefore they're useless anyway. --- patchtracker/Patch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'patchtracker/Patch.py') diff --git a/patchtracker/Patch.py b/patchtracker/Patch.py index c79f95c..670f389 100644 --- a/patchtracker/Patch.py +++ b/patchtracker/Patch.py @@ -50,7 +50,7 @@ class PatchSeries (list): self.style = "dpatch" except IOError, e: if e.errno != errno.ENOENT: - print "ERROR: unable to open dpatch list..." + #print "ERROR: unable to open dpatch list..." self.blank() return try: @@ -58,7 +58,7 @@ class PatchSeries (list): self.style = "quilt" except IOError, e: if e.errno != errno.ENOENT: - print "ERROR: series file is a directory..." + #print "ERROR: series file is a directory..." self.blank() return @@ -97,14 +97,14 @@ class PatchSeries (list): try: self.patches[p] = Patch(file(os.sep.join([dir, p+".dpatch"]))) except: - print "ERROR: could not find patch",p + #print "ERROR: could not find patch",p self.blank() return elif e.errno == errno.EISDIR: - print "WARNING: directory %s in patch dir, patch list incomplete"%(p) + #print "WARNING: directory %s in patch dir, patch list incomplete"%(p) removelater.append(p) else: - print "ERROR: could not find patch",p + #print "ERROR: could not find patch",p self.blank() return for p in removelater: -- cgit v1.2.3