<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,16 +14,9 @@ sys.path.append(os.environ['TM_BUNDLE_SUPPORT'] + '/lib')
 from ipythonMate import notify_with_growl
 import ipythonClient as client
 
-connected = client.find_server_then_connect()
-
 # Only notify if there was a problem.
-if not connected: 
+if not client.find_server_then_connect('%whos'):
     notify_with_growl(&quot;IPython Script&quot;, 'Failed to connect to IPython session')
-else:
-	client.send('%whos')
-	client.disconnect()
-
-
 &lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;none&lt;/string&gt;</diff>
      <filename>Commands/Print variables (detailed) (using server).tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -14,15 +14,9 @@ sys.path.append(os.environ['TM_BUNDLE_SUPPORT'] + '/lib')
 from ipythonMate import notify_with_growl
 import ipythonClient as client
 
-connected = client.find_server_then_connect()
-
 # Only notify if there was a problem.
-if not connected: 
+if not client.find_server_then_connect('%who'):
     notify_with_growl(&quot;IPython Script&quot;, 'Failed to connect to IPython session')
-else:
-	client.send('%who')
-	client.disconnect()
-
 
 &lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;</diff>
      <filename>Commands/Print variables (using server).tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -27,9 +27,8 @@ except KeyError:
 
 text='%run ' + run_options + '-p ' + prun_options + '  ' + os.environ.get('TM_FILEPATH')
 
-if client.find_server_then_connect(): 
-	client.send(text)
-	client.disconnect()
+# Only notify if there was a problem.
+if client.find_server_then_connect(text):
 	notify_with_growl(&quot;IPython Script&quot;, 'Ran ' + os.path.basename(os.environ.get('TM_FILEPATH')) + ' through profiler')
 else:
 	notify_with_growl(&quot;IPython Script&quot;, 'Failed to connect to IPython session')&lt;/string&gt;</diff>
      <filename>Commands/Run file through profiler (using server).tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -28,14 +28,10 @@ if not text:
     connected = False
 else:
     text = '%prun ' + prun_options + text
-    connected = client.find_server_then_connect()
     
 # Only notify if there was a problem.
-if not connected: 
-	notify_with_growl(&quot;IPython Script&quot;, 'Failed to connect to IPython session')
-else:
-	client.send(text)
-	client.disconnect()&lt;/string&gt;
+if not client.find_server_then_connect(text):
+	notify_with_growl(&quot;IPython Script&quot;, 'Failed to connect to IPython session')&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;none&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Commands/Run selection : line through profiler (using server).tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -205,7 +205,6 @@
 		&lt;string&gt;59D7CA34-7681-43E5-8964-53F132110218&lt;/string&gt;
 		&lt;string&gt;2E8EFEC2-BDBF-4465-9290-0760BEC3F10D&lt;/string&gt;
 		&lt;string&gt;428FDB39-B08D-42DB-BBB5-02988C7EFBF9&lt;/string&gt;
-		&lt;string&gt;112295B4-E6F7-4326-961B-5A4CE333F437&lt;/string&gt;
 		&lt;string&gt;280E16F1-814E-4B3A-BB65-97F3F4B71670&lt;/string&gt;
 		&lt;string&gt;842C84A4-49F2-4114-BAFF-D1D128F3AC9B&lt;/string&gt;
 		&lt;string&gt;F1780FD5-29EA-44FC-A8FA-95914849493E&lt;/string&gt;</diff>
      <filename>info.plist</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Commands/Help on current word.tmCommand</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>d0cb5e7e9478926bf9c9bfdd61512f2f1ccdb529</id>
    </parent>
  </parents>
  <author>
    <name>Matt Foster</name>
    <email>matt.p.foster@gmail.com</email>
  </author>
  <url>http://github.com/mattfoster/ipython-tmbundle/commit/14cd44cf8a568b0ac4d8832938d391fe542e231a</url>
  <id>14cd44cf8a568b0ac4d8832938d391fe542e231a</id>
  <committed-date>2008-12-09T13:38:17-08:00</committed-date>
  <authored-date>2008-12-09T13:38:17-08:00</authored-date>
  <message>Converted more commands to use twisted client</message>
  <tree>bc2edcdc4cc0dfeaf597213c6d2261da2a944203</tree>
  <committer>
    <name>Matt Foster</name>
    <email>matt.p.foster@gmail.com</email>
  </committer>
</commit>
