From 76dae0f2e775ca3ea96c6b5322714ddf3f2fcede Mon Sep 17 00:00:00 2001 From: ikaros45 Date: Sat, 13 Dec 2014 14:45:40 +0100 Subject: [PATCH] still playing with readme --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index 4ac6881..a99aa43 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,7 @@ Usage examples Constructing a connection string from scratch: .. code:: python + >>> from pyconstring import ConnectionString >>> cs = ConnectionString() >>> cs['user'] = 'manuel' @@ -34,6 +35,7 @@ Constructing a connection string from scratch: Parsing an already existing string: .. code:: python + >>> cs = ConnectionString.from_string('key1=value1;key2=value2;') >>> cs['key1'] = 'another value' >>> cs.get_string() @@ -45,6 +47,7 @@ Parsing an already existing string: Automated escaping when necessary: .. code:: python + >>> cs = ConnectionString() >>> cs['weird=key'] = '" weird;value ' >>> print cs.get_string() @@ -53,6 +56,7 @@ Automated escaping when necessary: Key translation: .. code:: python + >>> cs['key'] = 'value' >>> cs.translate({'key': 'clave'}) >>> print cs.get_string()