[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-207-ge4c5fe7

Sandro Tosi morph at debian.org
Wed Aug 10 22:02:42 UTC 2011


The following commit has been merged in the master branch:
commit 886067214bd44deb1ddaac1b499c6397cf6e8f4f
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Aug 10 23:13:29 2011 +0200

    Deprecate BTSParser and remove NullParser (not used)

diff --git a/reportbug/debbugs.py b/reportbug/debbugs.py
index db291a0..a381e86 100644
--- a/reportbug/debbugs.py
+++ b/reportbug/debbugs.py
@@ -849,6 +849,9 @@ for origin in glob.glob('/etc/dpkg/origins/*'):
 
 class BTSParser(sgmllib.SGMLParser):
     def __init__(self, mode='summary', cgi=False, followups=False):
+        import warnings
+        warnings.warn('BTSParse is Deprecated, report a bug if you see this',
+                      DeprecationWarning)
         sgmllib.SGMLParser.__init__(self)
         self.hierarchy = []
         self.lidata = None
@@ -1299,7 +1302,3 @@ def get_report(number, timeout, system='debian', mirrors=None,
     if not url: return None
 
     return parse_html_report(number, url, http_proxy, timeout, followups, cgi=False)
-
-class NullParser(sgmllib.SGMLParser):
-    def __init__(self):
-        sgmllib.SGMLParser.__init__(self)

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list