Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
tools
/
idea
/
814f829cd44c28c7045e08b15bd7ee08890cbd80
/
.
/
python
/
testData
/
inspections
/
PyUnresolvedReferencesInspection
/
contextManagerSubclass.py
blob: f7406dedbb6f316b4914754696e5aa5f3021e930 [
file
] [
log
] [
blame
]
Tor Norbye
814f829
2014-03-06 17:27:18 -0800
[
diff
] [
blame^
]
1
class
C
(
object
):
2
def
__enter__
(
self
):
3
return
self
4
5
6
class
D
(
C
):
7
def
foo
(
self
):
8
pass
9
10
11
with
D
()
as
cm
:
12
cm
.
foo
()
# pass