ALT Linux Bugzilla
– Attachment 1671 Details for
Bug 10221
FR: Добавить два патча и обновить версию до 0.6.3а
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch for stdout output
pyExcelerator-0.6.3a-stdout.patch (text/plain), 991 bytes, created by
swi
on 2006-11-01 12:29:44 MSK
(
hide
)
Description:
patch for stdout output
Filename:
MIME Type:
Creator:
swi
Created:
2006-11-01 12:29:44 MSK
Size:
991 bytes
patch
obsolete
>diff -urN pyExcelerator-0.6.3a.orig/pyExcelerator/CompoundDoc.py pyExcelerator-0.6.3a/pyExcelerator/CompoundDoc.py >--- pyExcelerator-0.6.3a.orig/pyExcelerator/CompoundDoc.py 2005-10-26 11:44:00 +0400 >+++ pyExcelerator-0.6.3a/pyExcelerator/CompoundDoc.py 2006-11-01 11:24:37 +0300 >@@ -538,6 +538,7 @@ > > > def save(self, filename, stream): >+ from sys import stdout > # 1. Align stream on 0x1000 boundary (and therefore on sector boundary) > padding = '\x00' * (0x1000 - (len(stream) % 0x1000)) > self.book_stream_len = len(stream) + len(padding) >@@ -545,8 +546,12 @@ > self.__build_directory() > self.__build_sat() > self.__build_header() >- >- f = file(filename, 'wb') >+ >+ if filename == '-': >+ f = stdout >+ else: >+ f = file(filename, 'wb') >+ > f.write(self.header) > f.write(self.packed_MSAT_1st) > f.write(stream)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10221
:
1670
| 1671