From: Oleg Broytman Date: Tue, 22 Dec 2015 21:05:12 +0000 (+0300) Subject: Add __all__ to mark public names X-Git-Tag: 0.0.3~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6de032b17c9bfc2c8695c204285b4916f69e4564;p=m_librarian.git Add __all__ to mark public names --- 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