@@ -100,16 +100,16 @@ instructed to do by the ``prompt_password`` key in the parameters::
100100
101101 >>> import postgresql.clientparameters as pg_param
102102 >>> p = pg_param.collect(prompt_title = 'my_prompt!', parameters = {'prompt_password':True})
103- Password for my_prompt![pq://jwp @localhost:5432]:
103+ Password for my_prompt![pq://dbusername @localhost:5432]:
104104 >>> p
105- {'host': 'localhost', 'user': 'jwp ', 'password': 'secret', 'port': 5432}
105+ {'host': 'localhost', 'user': 'dbusername ', 'password': 'secret', 'port': 5432}
106106
107107If `None `, it will leave the necessary password resolution information in the
108108parameters dictionary for ``resolve_password ``::
109109
110110 >>> p = pg_param.collect(prompt_title = None, parameters = {'prompt_password':True})
111111 >>> p
112- {'pgpassfile': '/Users/jwp /.pgpass', 'prompt_password': True, 'host': 'localhost', 'user': 'jwp ', 'port': 5432}
112+ {'pgpassfile': '/home/{USER} /.pgpass', 'prompt_password': True, 'host': 'localhost', 'user': 'dbusername ', 'port': 5432}
113113
114114Of course, ``'prompt_password' `` is normally specified when ``parsed_options ``
115115received a ``-W `` option from the command line::
@@ -118,9 +118,9 @@ received a ``-W`` option from the command line::
118118 >>> co, ca = op.parse_args(['-W'])
119119 >>> p = pg_param.collect(parsed_options = co)
120120 >>> p=pg_param.collect(parsed_options = co)
121- Password for [pq://jwp @localhost:5432]:
121+ Password for [pq://dbusername @localhost:5432]:
122122 >>> p
123- {'host': 'localhost', 'user': 'jwp ', 'password': 'secret', 'port': 5432}
123+ {'host': 'localhost', 'user': 'dbusername ', 'password': 'secret', 'port': 5432}
124124 >>>
125125
126126
@@ -166,10 +166,10 @@ When resolution occurs, the ``prompt_password``, ``prompt_title``, and
166166
167167 >>> p=pg_param.collect(prompt_title = None)
168168 >>> p
169- {'pgpassfile': '/Users/jwp /.pgpass', 'host': 'localhost', 'user': 'jwp ', 'port': 5432}
169+ {'pgpassfile': '/Users/{USER} /.pgpass', 'host': 'localhost', 'user': 'dbusername ', 'port': 5432}
170170 >>> pg_param.resolve_password(p)
171171 >>> p
172- {'host': 'localhost', 'password': 'secret', 'user': 'jwp ', 'port': 5432}
172+ {'host': 'localhost', 'password': 'secret', 'user': 'dbusername ', 'port': 5432}
173173
174174
175175Defaults
0 commit comments