aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-03-28 20:55:21 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2018-01-11 19:04:49 -0500
commitd4de20b77ae2e522fe1a5c730b426a5b60ac86f5 (patch)
tree18a15b43c0537243527957d22e0d68309ef26530 /markdown/extensions
parent11270135194922e0f5cfc739b69fe39f7337a0f9 (diff)
downloadmarkdown-d4de20b77ae2e522fe1a5c730b426a5b60ac86f5.tar.gz
markdown-d4de20b77ae2e522fe1a5c730b426a5b60ac86f5.tar.bz2
markdown-d4de20b77ae2e522fe1a5c730b426a5b60ac86f5.zip
Removed some Py2.4-2.6 specific code.
Diffstat (limited to 'markdown/extensions')
-rw-r--r--markdown/extensions/attr_list.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index 894e545..6ce73a6 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -24,12 +24,6 @@ from ..treeprocessors import Treeprocessor
from ..util import isBlockLevel
import re
-try:
- Scanner = re.Scanner
-except AttributeError: # pragma: no cover
- # must be on Python 2.4
- from sre import Scanner
-
def _handle_double_quote(s, t):
k, v = t.split('=', 1)
@@ -53,7 +47,7 @@ def _handle_word(s, t):
return t, t
-_scanner = Scanner([
+_scanner = re.Scanner([
(r'[^ =]+=".*?"', _handle_double_quote),
(r"[^ =]+='.*?'", _handle_single_quote),
(r'[^ =]+=[^ =]+', _handle_key_value),