From 6de032b17c9bfc2c8695c204285b4916f69e4564 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 23 Dec 2015 00:05:12 +0300 Subject: [PATCH] Add __all__ to mark public names --- m_librarian/db.py | 4 ++++ m_librarian/glst.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/m_librarian/db.py b/m_librarian/db.py index 28033f5..9eb50d5 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -1,5 +1,9 @@ #! /usr/bin/env python +__all__ = ['Author', 'Book', 'Extension', 'Genre', 'Language', + 'init_db', + ] + import os from sqlobject import SQLObject, StringCol, UnicodeCol, IntCol, BoolCol, \ ForeignKey, DateCol, connectionForURI, sqlhub, dberrors diff --git a/m_librarian/glst.py b/m_librarian/glst.py index 6ff58de..867d413 100755 --- a/m_librarian/glst.py +++ b/m_librarian/glst.py @@ -1,5 +1,7 @@ #! /usr/bin/env python +__all__ = ['import_data'] + import codecs import os from sqlobject import sqlhub, SQLObjectNotFound -- 2.39.5