repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Adjust how NEON shifts are lowered
[llvm-core.git]
/
test
/
tools
/
llvm-objcopy
/
Inputs
/
ungzip.py
blob
c7b1de96b25c439707ef2d56423885c0286fd90b
1
import
gzip
2
import
sys
3
4
with gzip
.
open
(
sys
.
argv
[
1
],
'rb'
)
as
f
:
5
writer
=
getattr
(
sys
.
stdout
,
'buffer'
,
None
)
6
if
writer
is None
:
7
writer
=
sys
.
stdout
8
if
sys
.
platform
==
"win32"
:
9
import
os
,
msvcrt
10
msvcrt
.
setmode
(
sys
.
stdout
.
fileno
(),
os
.
O_BINARY
)
11
12
writer
.
write
(
f
.
read
())
13
sys
.
stdout
.
flush
()