Commits

Carl Friedrich Bolz committed 6c3e62f

fix typo, re-enable consult

Comments (0)

Files changed (2)

prolog/builtin/__init__.py

 import prolog.builtin.formatting
 import prolog.builtin.metacall
 #import prolog.builtin.parseraccess
-#import prolog.builtin.source
+import prolog.builtin.source
 import prolog.builtin.termconstruction
 import prolog.builtin.unify

prolog/builtin/source.py

     import os
     if isinstance(var, term.Atom):
         try:
-            fd = os.open(var.name() os.O_RDONLY, 0777)
+            fd = os.open(var.name(), os.O_RDONLY, 0777)
         except OSError, e:
             error.throw_existence_error("source_sink", var)
             assert 0, "unreachable" # make the flow space happy