Put finally: in their own block for Python 2.4
This commit is contained in:
parent
8fd22efed2
commit
84658d4ea4
1
setup.py
1
setup.py
|
@ -73,6 +73,7 @@ class Uninstall(Command):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.ensure_filename('manifest')
|
self.ensure_filename('manifest')
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
f = open(self.manifest)
|
f = open(self.manifest)
|
||||||
files = [file.strip() for file in f]
|
files = [file.strip() for file in f]
|
||||||
|
|
|
@ -167,6 +167,7 @@ class ConfigFile:
|
||||||
def _line_ok(self):
|
def _line_ok(self):
|
||||||
if self._currvalue is None: return
|
if self._currvalue is None: return
|
||||||
else:
|
else:
|
||||||
|
try: # *glares at 2.4 users*
|
||||||
try:
|
try:
|
||||||
self.callback(self._currsection, self._currsetting, self._currvalue)
|
self.callback(self._currsection, self._currsetting, self._currvalue)
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
|
|
Loading…
Reference in New Issue