Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for #9157 #1

Open
wants to merge 1 commit into from

1 participant

@lorin

Removed regex compilations as recommended by peerst at
http://trac-hacks.org/ticket/9157#comment:2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 1, 2012
  1. @lorin

    Removed compile statements to fix #9157.

    lorin authored
    Removed regex compilations as recommended by peerst at
    <http://trac-hacks.org/ticket/9157#comment:2>.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 5 deletions.
  1. +4 −5 0.11/Markdown/macro.py
View
9 0.11/Markdown/macro.py
@@ -19,15 +19,14 @@
from genshi.builder import tag
-from re import sub, compile, search, I
+from re import sub, search, I
from StringIO import StringIO
# links, autolinks, and reference-style links
-LINK = compile(
- r'(\]\()([^) ]+)([^)]*\))|(<)([^>]+)(>)|(\n\[[^]]+\]: *)([^ \n]+)(.*\n)'
-)
-HREF = compile(r'href=[\'"]?([^\'" ]*)')
+LINK = r'(\]\()([^) ]+)([^)]*\))|(<)([^>]+)(>)|(\n\[[^]]+\]: *)([^ \n]+)(.*\n)'
+
+HREF = r'href=[\'"]?([^\'" ]*)'
__all__ = ['MarkdownMacro']
Something went wrong with that request. Please try again.