diff options
author | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:24:30 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:24:30 -0400 |
commit | 7d728afc3a684afadc7fa5c4672811ac0cc2fa98 (patch) | |
tree | 25e65c3520c2f7760d48a33ed7bc2322feb3cc59 /markdown/inlinepatterns.py | |
parent | df170411f369d20f85a4718698cdff100271b587 (diff) | |
download | markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.tar.gz markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.tar.bz2 markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.zip |
Marked a bunch of lines as 'no cover'. Coverage at 91%
Diffstat (limited to 'markdown/inlinepatterns.py')
-rw-r--r-- | markdown/inlinepatterns.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py index 9335748..9fed20d 100644 --- a/markdown/inlinepatterns.py +++ b/markdown/inlinepatterns.py @@ -178,7 +178,7 @@ class Pattern(object): * m: A re match object containing a match of the pattern. """ - pass + pass #pragma: no cover def type(self): """ Return class name, to define pattern type """ @@ -188,9 +188,9 @@ class Pattern(object): """ Return unescaped text given text with an inline placeholder. """ try: stash = self.markdown.treeprocessors['inline'].stashed_nodes - except KeyError: + except KeyError: #pragma: no cover return text - def itertext(el): + def itertext(el): #pragma: no cover ' Reimplement Element.itertext for older python versions ' tag = el.tag if not isinstance(tag, util.string_type) and tag is not None: @@ -293,7 +293,7 @@ class HtmlPattern(Pattern): """ Return unescaped text given text with an inline placeholder. """ try: stash = self.markdown.treeprocessors['inline'].stashed_nodes - except KeyError: + except KeyError: #pragma: no cover return text def get_stash(m): id = m.group(1) @@ -350,7 +350,7 @@ class LinkPattern(Pattern): try: scheme, netloc, path, params, query, fragment = url = urlparse(url) - except ValueError: + except ValueError: #pragma: no cover # Bad url - so bad it couldn't be parsed. return '' @@ -360,7 +360,7 @@ class LinkPattern(Pattern): # Not a known (allowed) scheme. Not safe. return '' - if netloc == '' and scheme not in locless_schemes: + if netloc == '' and scheme not in locless_schemes: #pragma: no cover # This should not happen. Treat as suspect. return '' |