]> gitweb.factorcode.org Git - factor.git/commitdiff
python.syntax: fix py-import.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Mar 2014 14:16:05 +0000 (07:16 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Mar 2014 14:27:39 +0000 (07:27 -0700)
extra/python/syntax/syntax.factor

index 362863a18c147a9a47ea28f3e1cc1754e8dc70f9..9b4eb3d63f6141c5c479d36945de547ea347f2e3 100644 (file)
@@ -41,7 +41,7 @@ SYMBOL: current-context
     { } { "obj" } <effect> define-inline ; inline
 
 : add-function ( name effect -- )
-    [ dup current-context get import swap getattr 2dup ] dip
+    [ dup current-context get py-import swap getattr 2dup ] dip
     function-callable function-object ; inline
 
 : make-method-quot ( name effect -- quot )