diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-18 19:05:50 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-18 19:05:50 -0500 |
commit | 77f8db7b41e7e23ea698c815958e31b5801f58bf (patch) | |
tree | 322cb55f366854f7dda58da8d4af66766e982290 /markdown/inlinepatterns.py | |
parent | 00d5eaae7475aec80e11710102fc76adae70cbe6 (diff) | |
download | markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.tar.gz markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.tar.bz2 markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.zip |
No binary operators at begining of line.
Apparently this is a new requirement of flake8. That's the thing about using
tox. Every test run reinstalls all dependencies so an updated dependency might
instroduce new errors. I could specify a specific version, but I like staying
current.
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 27690bf..95d358d 100644 --- a/markdown/inlinepatterns.py +++ b/markdown/inlinepatterns.py @@ -94,10 +94,10 @@ The actual regular expressions for patterns NOBRACKET = r'[^\]\[]*' BRK = ( - r'\[(' - + (NOBRACKET + r'(\[')*6 - + (NOBRACKET + r'\])*')*6 - + NOBRACKET + r')\]' + r'\[(' + + (NOBRACKET + r'(\[')*6 + + (NOBRACKET + r'\])*')*6 + + NOBRACKET + r')\]' ) NOIMG = r'(?<!\!)' @@ -162,8 +162,8 @@ LINE_BREAK_RE = r' \n' def dequote(string): """Remove quotes from around a string.""" - if ((string.startswith('"') and string.endswith('"')) - or (string.startswith("'") and string.endswith("'"))): + if ((string.startswith('"') and string.endswith('"')) or + (string.startswith("'") and string.endswith("'"))): return string[1:-1] else: return string |