[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit f964f7e8c95258b8ec572374dce772221886ecbf
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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)
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits