From 2e341416380ba5f35f0bca82ebbbd5837afd5b20 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Fri, 18 Nov 2016 20:48:36 +0300 Subject: Add blank lines after toplevel function definitions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes warnings with pycodestyle ≥ 2.1, see PyCQA/pycodestyle#400. --- markdown/__version__.py | 1 + markdown/extensions/attr_list.py | 1 + markdown/inlinepatterns.py | 1 + setup.py | 2 ++ 4 files changed, 5 insertions(+) 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, -- cgit v1.2.3