[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Fix indentation of docstring parameters in HTTPServer.WebResourceBridges.
commit ba592b4890837ad0eed08a761a273d1d4f7e5277
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Mar 4 04:36:54 2014 +0000
Fix indentation of docstring parameters in HTTPServer.WebResourceBridges.
---
lib/bridgedb/HTTPServer.py | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index fb1fb7f..724e8cd 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -241,31 +241,29 @@ class WebResourceOptions(twisted.web.resource.Resource):
render_POST = render_GET
+
class WebResourceBridges(twisted.web.resource.Resource):
"""This resource is used by Twisted Web to give a web page with some
bridges in response to a request."""
+
isLeaf = True
def __init__(self, distributor, schedule, N=1, useForwardedHeader=False,
includeFingerprints=True, domains=None):
"""Create a new WebResource.
- :type distributor: :class:`IPBasedDistributor`
- :param distributor: The mechanism to retrieve bridges for
- this distributor
- :type schedule: :class:`IntervalSchedule`
- :param schedule: The time period used to tweak the bridge
- selection procedure.
- :param int N: The number of bridges to hand out per query.
- :param bool useForwardedHeader: Whether or not we should
- use the the
- X-Forwarded-For header
- instead of the source IP
- address.
- :param bool includeFingerprints: Do we include the
- bridge's fingerprint
- in the response?
- :param list domains: The list of email provider
- domain names we support. (unused)
+
+ :type distributor: :class:`IPBasedDistributor`
+ :param distributor: The mechanism to retrieve bridges for this
+ distributor.
+ :type schedule: :class:`IntervalSchedule`
+ :param schedule: The time period used to tweak the bridge selection
+ procedure.
+ :param int N: The number of bridges to hand out per query.
+ :param bool useForwardedHeader: Whether or not we should use the the
+ X-Forwarded-For header instead of the
+ source IP address.
+ :param bool includeFingerprints: Do we include the bridge's
+ fingerprint in the response?
"""
gettext.install("bridgedb", unicode=True)
twisted.web.resource.Resource.__init__(self)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits