mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
byobu-config: make byobu more python 2.5 friendly, by dropping the
'finally' clauses
This commit is contained in:
parent
79008190b0
commit
3fbcf6a3da
2 changed files with 12 additions and 10 deletions
10
byobu-config
10
byobu-config
|
@ -226,9 +226,9 @@ def appendwindow(win):
|
|||
f.write(win+"\n")
|
||||
|
||||
except IOError:
|
||||
f.close()
|
||||
return None
|
||||
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
def readwindows():
|
||||
|
@ -255,9 +255,9 @@ def readwindows():
|
|||
return li
|
||||
|
||||
except IOError:
|
||||
f.close()
|
||||
return None
|
||||
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
def readstatus():
|
||||
|
@ -318,8 +318,8 @@ def writestatus(items):
|
|||
elif i[0] == 0:
|
||||
f.write(i[1]+"=0\n")
|
||||
except IOError:
|
||||
f.close()
|
||||
return None
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
def togglestatus(screen, size):
|
||||
|
@ -357,8 +357,8 @@ def writewindows(winlist):
|
|||
else:
|
||||
f.write(win[1])
|
||||
except IOError:
|
||||
f.close()
|
||||
return None
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
def defaultwindows(screen, size):
|
||||
|
@ -413,8 +413,8 @@ def appendtofile(p, s):
|
|||
try:
|
||||
f.write(s)
|
||||
except IOError:
|
||||
f.close()
|
||||
return
|
||||
finally:
|
||||
f.close()
|
||||
return
|
||||
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -7,6 +7,8 @@ byobu (2.39) unreleased; urgency=low
|
|||
screen-escape-keys (^a-@), or none (byobu-config), else (F9), LP: #450421
|
||||
* debian/prerm: the for loop might not actually do anything, so make
|
||||
sure we do "something", like run "true", LP: #441788
|
||||
* byobu-config: make byobu more python 2.5 friendly, by dropping the
|
||||
'finally' clauses
|
||||
|
||||
[ Derek Carter ]
|
||||
* rpm/byobu.spec: updated for Fedora 11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue