import os
import glob
import subprocess

token = os.environ['BINSTAR_TOKEN']
cmd = ['binstar', '-t', token, 'upload', '--force']
cmd.extend(glob.glob('*.tar.bz2'))
try:
    subprocess.check_call(cmd)
except subprocess.CalledProcessError:
    import traceback
    traceback.print_last()


@@ -32,16 +32,33 @@
 bprocess
+%0Aimport traceback
 %0A%0Atoken 
@@ -252,29 +252,8 @@
 or:%0A
-    import traceback%0A
     
@@ -272,12 +272,11 @@
 int_
-last
+exc
 ()%0A%0A

fix traceback