@@ -69,14 +69,14 @@ def _import_markdown2():
6969 # 2.4.10 uses a regexp string that it compiles.
7070
7171 markdown2_vi = markdown2 .__version_info__
72- if markdown2_vi > (2 , 4 , 9 ):
72+ if markdown2_vi > (2 , 4 , 9 ):
7373 # Create the filtering regexp.
7474 # Allowed default is same as what hyper_re supports.
7575
7676 # pathed_schemes are terminated with ://
77- pathed_schemes = [ 'http' , 'https' , 'ftp' , 'ftps' ]
77+ pathed_schemes = [ 'http' , 'https' , 'ftp' , 'ftps' ]
7878 # non_pathed are terminated with a :
79- non_pathed_schemes = [ "mailto" ]
79+ non_pathed_schemes = ["mailto" ]
8080
8181 for disabled in _disable_url_schemes :
8282 try :
@@ -95,6 +95,7 @@ def _import_markdown2():
9595 re_list .append (r'(?:%s):' % scheme )
9696
9797 enabled_schemes = r"|" .join (re_list )
98+
9899 class Markdown (markdown2 .Markdown ):
99100 _safe_protocols = enabled_schemes
100101 elif markdown2_vi == (2 , 4 , 9 ):
@@ -1895,7 +1896,7 @@ def rst(self, hyperlink=1):
18951896 # causing a KeyError. So see if we removed it (and entered
18961897 # it into valid_schemes). If we didn't raise KeyError.
18971898 try :
1898- del (schemes [sch ])
1899+ del (schemes [sch ])
18991900 self .valid_schemes [sch ] = True
19001901 except KeyError :
19011902 if sch in self .valid_schemes :
0 commit comments