Commit 24f79223 authored by Stephen Kennedy's avatar Stephen Kennedy

python2.3 has generators by default.

parent 2e15ee39
......@@ -14,8 +14,6 @@
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import generators
import tempfile
import gobject
import shutil
......
......@@ -14,7 +14,6 @@
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import generators
import difflib
import misc
......
......@@ -14,8 +14,6 @@
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import generators
import paths
import diffutil
import errno
......
......@@ -18,7 +18,6 @@
"""
from __future__ import generators
import copy
import sys
import os
......@@ -239,10 +238,7 @@ def commonprefix(dirs):
def escape(s):
"""Replace special characters '&', '<' and '>' by SGML entities.
"""
s = s.replace("&", "&amp;")
s = s.replace("<", "&lt;")
s = s.replace(">", "&gt;")
return s
return s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
def copytree(src, dst, symlinks=1):
try:
......
......@@ -14,8 +14,6 @@
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import generators
import calendar
import tempfile
import gobject
......
......@@ -17,7 +17,6 @@
"""Classes to implement scheduling for cooperative threads.
"""
from __future__ import generators
import traceback
class SchedulerBase(object):
......@@ -131,6 +130,8 @@ class SchedulerBase(object):
ret = task()
except StopIteration:
pass
except SystemExit:
raise
except Exception, e:
traceback.print_exc()
else:
......
......@@ -14,7 +14,6 @@
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import generators
import os
import gtk
import misc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment