Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
tools
/
idea
/
3a2425a5aed1bef93dab954745ad5665265eb70b
/
.
/
python
/
testData
/
resolve
/
TupleInExcept.py
blob: 1ebd91de1cde02793b85153112647b10932d971c [
file
] [
log
] [
blame
]
Tor Norbye
3a2425a
2013-11-04 10:16:08 -0800
[
diff
] [
blame^
]
1
import
errno
2
try
:
3
f
=
open
(
'myfile.txt'
)
4
s
=
f
.
readline
()
5
i
=
int
(
s
.
strip
())
6
except
IOError
as
(
errno
,
strerror
):
7
print
"I/O error({0}): {1}"
.
format
(
e
<
ref
>
rrno
,
strerror
)