Diff of /pyke/krb_compiler/helpers.py [081917] .. [2922d1] Maximize Restore

  Switch to side-by-side view

--- a/pyke/krb_compiler/helpers.py
+++ b/pyke/krb_compiler/helpers.py
@@ -27,7 +27,6 @@
     return (
         "# %s_fc.py" % rb_name,
         "",
-        "from __future__ import with_statement",
         "from pyke import contexts, pattern, fc_rule, knowledge_base",
         "",
         "pyke_version = %r" % pyke.version,
@@ -38,8 +37,6 @@
     return (
         "# %s_bc.py" % rb_name,
         "",
-        "from __future__ import with_statement",
-        "import itertools",
         "from pyke import contexts, pattern, bc_rule",
         "",
         "pyke_version = %r" % pyke.version,
@@ -70,9 +67,9 @@
         "try:",
         ("INDENT", 2),
         ("STARTING_LINENO", start_lineno),
-        "if all(itertools.imap(lambda pat, arg:",
-        ("INDENT", 2),
-        ("INDENT", 20),
+        "if all(map(lambda pat, arg:",
+        ("INDENT", 2),
+        ("INDENT", 9),
         ("INDENT", 2),
         "pat.match_pattern(context, context,",
         ("INDENT", 18),