From: Oleg Broytman Date: Wed, 26 Apr 2017 18:19:50 +0000 (+0300) Subject: Fix flake8 E305: expected 2 blank lines after function X-Git-Tag: 0.0.16~27 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=9b4f50c79b856146e1d90444df10e64797869997 Fix flake8 E305: expected 2 blank lines after function --- diff --git a/m_librarian/config.py b/m_librarian/config.py index e1ee7d9..4abed14 100755 --- a/m_librarian/config.py +++ b/m_librarian/config.py @@ -57,5 +57,6 @@ def test(): print("Config dirs:", config_dirs) print("Config file:", find_config_file(config_dirs)) + if __name__ == '__main__': test() diff --git a/m_librarian/db.py b/m_librarian/db.py index 42735af..628675e 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -225,5 +225,6 @@ def test(): print("DB dirs:", db_dirs) print("DB URI:", find_sqlite_dburi()) + if __name__ == '__main__': test() diff --git a/m_librarian/download.py b/m_librarian/download.py index 6f4daf4..db09f12 100755 --- a/m_librarian/download.py +++ b/m_librarian/download.py @@ -111,5 +111,6 @@ def test(): _compile_format() print(compiled_format) + if __name__ == '__main__': test() diff --git a/m_librarian/glst.py b/m_librarian/glst.py index 0ceba1a..cf581b1 100755 --- a/m_librarian/glst.py +++ b/m_librarian/glst.py @@ -63,5 +63,6 @@ def test(): ml_dir = os.path.dirname(__file__) print(parse_glst_file(os.path.join(ml_dir, 'glst', 'genres_fb2.glst'))) + if __name__ == '__main__': test()