From 0c4d0bd6fb72eb49b8c26e2609c36d090f29f2e8 Mon Sep 17 00:00:00 2001 From: Joakim Soderlund Date: Mon, 19 Dec 2016 17:59:03 +0100 Subject: [PATCH] Add member declarations to all modules --- fimfarchive/exceptions.py | 7 +++++++ fimfarchive/fetchers.py | 7 +++++++ fimfarchive/flavors.py | 8 ++++++++ fimfarchive/stories.py | 5 +++++ 4 files changed, 27 insertions(+) diff --git a/fimfarchive/exceptions.py b/fimfarchive/exceptions.py index cd728a0..6adf895 100644 --- a/fimfarchive/exceptions.py +++ b/fimfarchive/exceptions.py @@ -22,6 +22,13 @@ Exceptions for Fimfarchive. # +__all__ = ( + 'FimfarchiveError', + 'InvalidStoryError', + 'StorySourceError', +) + + class FimfarchiveError(Exception): """ Base class for Fimfarchive exceptions. diff --git a/fimfarchive/fetchers.py b/fimfarchive/fetchers.py index 5d976ee..fd2d8fb 100644 --- a/fimfarchive/fetchers.py +++ b/fimfarchive/fetchers.py @@ -36,6 +36,13 @@ from fimfarchive.flavors import StorySource, DataFormat, MetaPurity from fimfarchive.stories import Story +__all__ = ( + 'Fetcher', + 'FimfictionFetcher', + 'FimfarchiveFetcher', +) + + StreamReader = codecs.getreader('utf-8') diff --git a/fimfarchive/flavors.py b/fimfarchive/flavors.py index 7fd16d5..e878160 100644 --- a/fimfarchive/flavors.py +++ b/fimfarchive/flavors.py @@ -25,6 +25,14 @@ Flavors for Fimfarchive. from enum import Enum +__all__ = ( + 'Flavor', + 'StorySource', + 'DataFormat', + 'MetaPurity', +) + + class Flavor(Enum): """ Base class for flavors. diff --git a/fimfarchive/stories.py b/fimfarchive/stories.py index f1d026b..7bd4f02 100644 --- a/fimfarchive/stories.py +++ b/fimfarchive/stories.py @@ -22,6 +22,11 @@ Stories for Fimfarchive. # +__all__ = ( + 'Story', +) + + class Story: """ Represents a story.