Fix a few small issues. opening() is introduced later.
This commit is contained in:
parent
aa6acdbce6
commit
80bb3418b1
|
@ -98,7 +98,7 @@ Motivation and Summary
|
||||||
|
|
||||||
Now consider this example:
|
Now consider this example:
|
||||||
|
|
||||||
with f = opening("/etc/passwd"):
|
with f = open("/etc/passwd"):
|
||||||
BLOCK1
|
BLOCK1
|
||||||
BLOCK2
|
BLOCK2
|
||||||
|
|
||||||
|
@ -781,7 +781,7 @@ Examples
|
||||||
indentation:
|
indentation:
|
||||||
|
|
||||||
class nested(object):
|
class nested(object):
|
||||||
def __init__(*contexts):
|
def __init__(self, *contexts):
|
||||||
self.contexts = contexts
|
self.contexts = contexts
|
||||||
self.entered = None
|
self.entered = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue