[tor-commits] [bridgedb/develop] Finish incomplete doctest in bridgedb.strings.

isis at torproject.org isis at torproject.org
Wed May 14 03:42:27 UTC 2014


commit 27d1df15bc346e80459e158b39247abeebd24eb3
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue May 6 00:21:09 2014 +0000

    Finish incomplete doctest in bridgedb.strings.
---
 lib/bridgedb/strings.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/bridgedb/strings.py b/lib/bridgedb/strings.py
index d2c8a87..5009b44 100644
--- a/lib/bridgedb/strings.py
+++ b/lib/bridgedb/strings.py
@@ -170,9 +170,10 @@ and so to replace the two ``%s`` format specifiers, you would use this mapping
 like so::
 
 >>> from bridgedb import strings
->>> welcome = strings.WELCOME.get(0)
->>> emailWelcome = welcome.format(strings.EMAIL_SPRINTF.get("WELCOME0"))
->>> emailWelcome
+>>> welcome = strings.WELCOME[0] % strings.EMAIL_SPRINTF["WELCOME0"]
+>>> print welcome.split('\n')[0]
+BridgeDB can provide bridges with several types of Pluggable Transports[0],
+
 """
 
 EMAIL_REFERENCE_LINKS = {





More information about the tor-commits mailing list