From 9b4f50c79b856146e1d90444df10e64797869997 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 26 Apr 2017 21:19:50 +0300 Subject: [PATCH] Fix flake8 E305: expected 2 blank lines after function --- m_librarian/config.py | 1 + m_librarian/db.py | 1 + m_librarian/download.py | 1 + m_librarian/glst.py | 1 + 4 files changed, 4 insertions(+) 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() -- 2.39.5