Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
tools
/
idea
/
3a2425a5aed1bef93dab954745ad5665265eb70b
/
.
/
python
/
testData
/
inspections
/
PyUnreachableCodeInspection
/
WithSuppressedExceptions.py
blob: d0e49836e683aa2ac021bec64bd19923ae409f0c [
file
] [
log
] [
blame
]
Tor Norbye
3a2425a
2013-11-04 10:16:08 -0800
[
diff
] [
blame^
]
1
class
C
(
object
):
2
def
__enter__
(
self
):
3
return
self
4
5
def
__exit__
(
self
,
exc
,
value
,
traceback
):
6
return
True
7
8
9
def
f
():
10
with
C
():
11
raise
Exception
()
12
x
=
1
#pass