aboutsummaryrefslogtreecommitdiffstats
path: root/minidinstall/misc.py
diff options
context:
space:
mode:
authorLibravatarChristoph Goehre <christoph.goehre@gmx.de>2008-09-20 10:52:41 +0200
committerLibravatarChristoph Goehre <christoph.goehre@gmx.de>2008-09-20 18:10:30 +0200
commita4cc92989da6619456a69f8d176e0986c4935496 (patch)
tree5dfbee6a2297f83bf43443e73f10f3523ab55a96 /minidinstall/misc.py
parent5bbaa283c704fb3a1d83c281031d6131cfc58a91 (diff)
expand tabs and remove tailing whitespaces
Diffstat (limited to 'minidinstall/misc.py')
-rw-r--r--minidinstall/misc.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/minidinstall/misc.py b/minidinstall/misc.py
index a942adc..aeb1490 100644
--- a/minidinstall/misc.py
+++ b/minidinstall/misc.py
@@ -21,19 +21,19 @@
import os, errno, time, string, re, popen2
def dup2(fd,fd2):
- # dup2 with EBUSY retries (cf. dup2(2) and Debian bug #265513)
- success = 0
- tries = 0
- while (not success):
- try:
- os.dup2(fd,fd2)
- success = 1
- except OSError, e:
- if (e.errno != errno.EBUSY) or (tries >= 3):
- raise
- # wait 0-2 seconds befor next try
- time.sleep(tries)
- tries += 1
+ # dup2 with EBUSY retries (cf. dup2(2) and Debian bug #265513)
+ success = 0
+ tries = 0
+ while (not success):
+ try:
+ os.dup2(fd,fd2)
+ success = 1
+ except OSError, e:
+ if (e.errno != errno.EBUSY) or (tries >= 3):
+ raise
+ # wait 0-2 seconds befor next try
+ time.sleep(tries)
+ tries += 1
def format_changes(L):
""" remove changelog header and all lines with only a dot """