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: Improve the docstrings and help() behavior, shorten the README, add Development documentation and a… Created Oct. 10, 2017, 4:25 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
« no previous file with comments | « abp/filters/parser.py ('k') | abp/filters/renderer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « abp/filters/parser.py ('k') | abp/filters/renderer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld