@@ -69,14 +69,14 @@ def _import_markdown2():
69
69
# 2.4.10 uses a regexp string that it compiles.
70
70
71
71
markdown2_vi = markdown2 .__version_info__
72
- if markdown2_vi > (2 , 4 , 9 ):
72
+ if markdown2_vi > (2 , 4 , 9 ):
73
73
# Create the filtering regexp.
74
74
# Allowed default is same as what hyper_re supports.
75
75
76
76
# pathed_schemes are terminated with ://
77
- pathed_schemes = [ 'http' , 'https' , 'ftp' , 'ftps' ]
77
+ pathed_schemes = [ 'http' , 'https' , 'ftp' , 'ftps' ]
78
78
# non_pathed are terminated with a :
79
- non_pathed_schemes = [ "mailto" ]
79
+ non_pathed_schemes = ["mailto" ]
80
80
81
81
for disabled in _disable_url_schemes :
82
82
try :
@@ -95,6 +95,7 @@ def _import_markdown2():
95
95
re_list .append (r'(?:%s):' % scheme )
96
96
97
97
enabled_schemes = r"|" .join (re_list )
98
+
98
99
class Markdown (markdown2 .Markdown ):
99
100
_safe_protocols = enabled_schemes
100
101
elif markdown2_vi == (2 , 4 , 9 ):
@@ -1895,7 +1896,7 @@ def rst(self, hyperlink=1):
1895
1896
# causing a KeyError. So see if we removed it (and entered
1896
1897
# it into valid_schemes). If we didn't raise KeyError.
1897
1898
try :
1898
- del (schemes [sch ])
1899
+ del (schemes [sch ])
1899
1900
self .valid_schemes [sch ] = True
1900
1901
except KeyError :
1901
1902
if sch in self .valid_schemes :
0 commit comments