projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554ae97
)
use sys.stdout.write instead of print to prevent additional newlines
author
Ulrich Dangel
<uli@spamt.net>
Tue, 20 Oct 2009 22:25:52 +0000
(
00:25
+0200)
committer
Ulrich Dangel
<uli@spamt.net>
Tue, 20 Oct 2009 22:25:52 +0000
(
00:25
+0200)
grml2usb
patch
|
blob
|
history
diff --git
a/grml2usb
b/grml2usb
index
764bb2c
..
6ecc0aa
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-1448,7
+1448,7
@@
def remove_default_entry(filename):
default_re = re.compile("^(\s*menu\s*default\s*)$", re.I)
for line in fileinput.input(filename, inplace=1):
if default_re.match(line): continue
- print line
+ sys.stdout.write(line)
fileinput.close()