[tor-commits] [bridgedb/master] Fix Sphinx directives in HTTPServer.usingRTLLang().

isis at torproject.org isis at torproject.org
Tue Feb 4 00:28:47 UTC 2014


commit f964f7e8c95258b8ec572374dce772221886ecbf
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Jan 24 03:39:30 2014 +0000

    Fix Sphinx directives in HTTPServer.usingRTLLang().
---
 lib/bridgedb/HTTPServer.py |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 153918b..ea10e0b 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -371,8 +371,7 @@ def addWebServer(cfg, dist, sched):
     return site
 
 def usingRTLLang(request):
-    """
-    Check if we should translate the text into a RTL language
+    """Check if we should translate the text into a RTL language
 
     Retrieve the headers from the request. Obtain the Accept-Language header
     and decide if we need to translate the text. Install the requisite
@@ -380,8 +379,11 @@ def usingRTLLang(request):
     support. Choose the first language from the header that we support and
     return True if it is a RTL language, else return False.
 
-    :param request twisted.web.server.Request: Incoming request
-    :returns bool: Language is right-to-left
+    :type request: :api:`twisted.web.server.Request`
+    :param request: An incoming request.
+    :rtype: bool
+    :returns: ``True`` if the preferred language is right-to-left; ``False``
+              otherwise.
     """
     langs = setLocaleFromRequestHeader(request)
 





More information about the tor-commits mailing list