repo.or.cz
/
reconos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Moved old bin2xdevcfg to revbin
[reconos.git]
/
tools
/
python
/
reverse_byte_order.py
blob
8140aa254bd017474dd331003c7d68ece905362c
1
import
sys
2
3
f
=
open
(
sys
.
argv
[
1
],
"r"
)
4
5
while True
:
6
word
=
f
.
read
(
4
)
7
8
if not
word
:
break
9
10
sys
.
stdout
.
write
(
word
[::-
1
])
11