aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2016-11-18 20:48:36 +0300
committerDmitry Shachnev <mitya57@gmail.com>2016-11-18 20:53:23 +0300
commit2e341416380ba5f35f0bca82ebbbd5837afd5b20 (patch)
tree5e8f704e0e8a71ba33b71e3845c00d426a816713
parentdc7cb37a9d6d705d98b1730a2fcd7ce42e86b55d (diff)
downloadmarkdown-2e341416380ba5f35f0bca82ebbbd5837afd5b20.tar.gz
markdown-2e341416380ba5f35f0bca82ebbbd5837afd5b20.tar.bz2
markdown-2e341416380ba5f35f0bca82ebbbd5837afd5b20.zip
Add blank lines after toplevel function definitions.
This fixes warnings with pycodestyle ≥ 2.1, see PyCQA/pycodestyle#400.
-rw-r--r--markdown/__version__.py1
-rw-r--r--markdown/extensions/attr_list.py1
-rw-r--r--markdown/inlinepatterns.py1
-rwxr-xr-xsetup.py2
4 files changed, 5 insertions, 0 deletions
diff --git a/markdown/__version__.py b/markdown/__version__.py
index 339f039..049942b 100644
--- a/markdown/__version__.py
+++ b/markdown/__version__.py
@@ -26,4 +26,5 @@ def _get_version():
return str(main + sub)
+
version = _get_version()
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index 9f6a99a..a7f92b6 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -52,6 +52,7 @@ def _handle_word(s, t):
return 'id', t[1:]
return t, t
+
_scanner = Scanner([
(r'[^ =]+=".*?"', _handle_double_quote),
(r"[^ =]+='.*?'", _handle_single_quote),
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 6d4c969..67bc2a8 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -87,6 +87,7 @@ def build_inlinepatterns(md_instance, **kwargs):
inlinePatterns["emphasis2"] = SimpleTagPattern(EMPHASIS_2_RE, 'em')
return inlinePatterns
+
"""
The actual regular expressions for patterns
-----------------------------------------------------------------------------
diff --git a/setup.py b/setup.py
index fec2dcb..0699512 100755
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ def get_version():
finally:
fp.close()
+
version, version_info = get_version()
# Get development Status for classifiers
@@ -210,6 +211,7 @@ class md_build(build):
sub_commands = build.sub_commands + [('build_docs', has_docs)]
+
long_description = '''
This is a Python implementation of John Gruber's Markdown_.
It is almost completely compliant with the reference implementation,