@@ -101,9 +101,9 @@ def database_vendor(model, mode='read'):
101101
102102
103103class EscapeHtml (Extension ):
104- def extendMarkdown (self , md , md_globals ):
105- del md .preprocessors [ 'html_block' ]
106- del md .inlinePatterns [ 'html' ]
104+ def extendMarkdown (self , md ):
105+ md .preprocessors . deregister ( 'html_block' )
106+ md .inlinePatterns . deregister ( 'html' )
107107
108108
109109def parse_markdown (text , allow_html = False ):
@@ -138,6 +138,7 @@ def groupby_preserve_order(iterable, keyfunc):
138138class PackageStandin (object ):
139139 '''Resembles a Package object, and has a few of the same fields, but is
140140 really a link to a pkgbase that has no package with matching pkgname.'''
141+
141142 def __init__ (self , package ):
142143 self .package = package
143144 self .pkgname = package .pkgbase
@@ -152,6 +153,7 @@ def get_absolute_url(self):
152153class DependStandin (object ):
153154 '''Resembles a Depend object, and has a few of the same fields, but is
154155 really a link to a base package rather than a single package.'''
156+
155157 def __init__ (self , depends ):
156158 self ._depends = depends
157159 first = depends [0 ]
@@ -165,6 +167,7 @@ def __init__(self, depends):
165167
166168class SignatureWrapper (SignaturePacket ):
167169 'Decode key_id from raw SignaturePacket'
170+
168171 def __init__ (self , packet ):
169172 for field in ("sig_version" , "creation_time" , "expiration_time" ):
170173 setattr (self , field , getattr (packet , field ))
0 commit comments