Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: abp/filters/render_script.py

Issue 29465720: Issue 4970 - Document the library API of python-abp (Closed)
Patch Set: Rebase to match the new master and retouche the docstrings. Created Oct. 24, 2017, 4:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: abp/filters/render_script.py
===================================================================
--- a/abp/filters/render_script.py
+++ b/abp/filters/render_script.py
@@ -8,24 +8,28 @@
# Adblock Plus is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+"""Command line script for rendering Adblock Plus filter lists."""
+
import argparse
import io
import logging
import sys
from .sources import FSSource, TopSource, WebSource, NotFound
from .renderer import render_filterlist, IncludeError, MissingHeader
+__all__ = ['main']
+
def parse_args():
parser = argparse.ArgumentParser(description='Render a filter list.')
parser.add_argument(
'infile', help='top level filter list fragment from which the '
'rendering starts')
parser.add_argument('outfile', help='output filter list file')
parser.add_argument(

Powered by Google App Engine
This is Rietveld