aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/blockprocessors.py2
-rw-r--r--markdown/inlinepatterns.py8
-rw-r--r--markdown/serializers.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py
index e8f6750..08fbcf8 100644
--- a/markdown/blockprocessors.py
+++ b/markdown/blockprocessors.py
@@ -433,7 +433,7 @@ class HashHeaderProcessor(BlockProcessor):
if after:
# Insert remaining lines as first block for future parsing.
blocks.insert(0, after)
- else:
+ else: #pragma: no cover
# This should never happen, but just in case...
logger.warn("We've got a problem header: %r" % block)
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 9fed20d..dd06dff 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -46,13 +46,13 @@ from __future__ import unicode_literals
from . import util
from . import odict
import re
-try:
+try: #pragma: no cover
from urllib.parse import urlparse, urlunparse
-except ImportError:
+except ImportError: #pragma: no cover
from urlparse import urlparse, urlunparse
-try:
+try: #pragma: no cover
from html import entities
-except ImportError:
+except ImportError: #pragma: no cover
import htmlentitydefs as entities
diff --git a/markdown/serializers.py b/markdown/serializers.py
index 72fcef6..f53ae31 100644
--- a/markdown/serializers.py
+++ b/markdown/serializers.py
@@ -44,7 +44,7 @@ ElementTree = util.etree.ElementTree
QName = util.etree.QName
if hasattr(util.etree, 'test_comment'): #pragma: no cover
Comment = util.etree.test_comment
-else: #prgama: no cover
+else: #pragma: no cover
Comment = util.etree.Comment
PI = util.etree.PI
ProcessingInstruction = util.etree.ProcessingInstruction