Skip to content

Commit

Permalink
Fix variable name in code example
Browse files Browse the repository at this point in the history
The variable is named `address` and is called `addr` in the following lines. This PR use `address` consistently.
  • Loading branch information
sblondon authored and Michael Howitz committed Dec 13, 2019
1 parent e351754 commit 603f6b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,17 @@ storage.
We can then create a ZEO client connection using the address
returned::

connection = ZEO.connection(addr)
connection = ZEO.connection(address)

This is a ZODB connection for a database opened on a client storage
instance created on the fly. This is a shorthand for::

db = ZEO.DB(addr)
db = ZEO.DB(address)
connection = db.open()

Which is a short-hand for::

client_storage = ZEO.client(addr)
client_storage = ZEO.client(address)

import ZODB
db = ZODB.db(client_storage)
Expand Down

0 comments on commit 603f6b6

Please sign in to comment.