[tor-commits] [bridgedb/master] Fix typos in two docstrings in HTTPServer.

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


commit ca1544c38005262df7ada31806f7ca6e0f0ccbb0
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sun Jan 26 05:45:17 2014 +0000

    Fix typos in two docstrings in HTTPServer.
---
 lib/bridgedb/HTTPServer.py |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 3bffe81..104e924 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -432,11 +432,11 @@ def usingRTLLang(request):
     return False
 
 def getAssumedChosenLang(langs):
-    """
-    Return the first language in ``langs`` and we supprt
+    """Return the first language in **langs** that we support.
 
-    :param langs list: All requested languages
-    :returns string: Chosen language
+    :param list langs: All requested languages
+    :rtype: str
+    :returns: A country code for the client's preferred language.
     """
     i18npath = os.path.join(os.path.dirname(__file__), 'i18n')
     path = filepath.FilePath(i18npath)
@@ -456,9 +456,8 @@ def setLocaleFromRequestHeader(request):
     Parse the languages in the header, and attempt to install the first one in
     the list. If that fails, we receive a :class:`gettext.NullTranslation`
     object, if it worked then we have a :class:`gettext.GNUTranslation`
-    object. Whichever one we end up with, add the other get the other
-    languages and add them as fallbacks to the first. Lastly, install this
-    chain of translations.
+    object. Whichever one we end up with, get the other languages and add them
+    as fallbacks to the first. Lastly, install this chain of translations.
 
     :type request: :api:`twisted.web.server.Request`
     :param request: An incoming request from a client.





More information about the tor-commits mailing list