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

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



commit 27d1df15bc346e80459e158b39247abeebd24eb3
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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 = {



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