From 4f549037da887d6cde13a8369f30d41f21597cc5 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Wed, 29 Aug 2012 03:26:24 -0400
Subject: [PATCH] Move pexpect import to a more appropriate place.

---
 pymbolic/maxima.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pymbolic/maxima.py b/pymbolic/maxima.py
index da3a150..fa049ec 100644
--- a/pymbolic/maxima.py
+++ b/pymbolic/maxima.py
@@ -1,7 +1,6 @@
 # Inspired by similar code in Sage at:
 # http://trac.sagemath.org/sage_trac/browser/sage/interfaces/maxima.py
 
-import pexpect
 import re
 import pytools
 
@@ -198,6 +197,8 @@ class MaximaKernel:
     # {{{ internal
 
     def _initialize(self):
+
+        import pexpect
         self.child = pexpect.spawn(self.executable,
                 ["--disable-readline", "-q"],
                 timeout=self.timeout)
-- 
GitLab